summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-11 18:46:15 +0200
committerdefault <nobody@localhost>2024-05-11 18:46:15 +0200
commite1ce85debd5b192b5dc56a4e9810839cc52b0f8b (patch)
tree76b44e0d587b7476bd0dcf2f054e813583001a4b /html.c
parent3954361785c1384272b0e9fc7262bb25441101de (diff)
Unified post-like object type match.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 0cdb608..12dba6b 100644
--- a/html.c
+++ b/html.c
@@ -256,7 +256,7 @@ xs_html *html_msg_icon(snac *user, char *actor_id, const xs_dict *msg)
int priv = 0;
const char *type = xs_dict_get(msg, "type");
- if (xs_match(type, "Note|Question|Page|Article|Video"))
+ if (xs_match(type, POSTLIKE_OBJECT_TYPE))
url = xs_dict_get(msg, "id");
priv = !is_msg_public(msg);
@@ -1405,7 +1405,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
html_msg_icon(read_only ? NULL : user, xs_dict_get(msg, "actor"), msg)));
}
else
- if (!xs_match(type, "Note|Question|Page|Article|Video")) {
+ if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) {
/* skip oddities */
return NULL;
}