summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-05-11 19:18:07 +0200
committerGravatar default2024-05-11 19:18:07 +0200
commit0a11d70fbecd69e0c93000581b800ff434d42767 (patch)
treeae77df1ea5686254090650af3fcfef64817aa28b /html.c
parentIn timeline_request(), call enqueue_actor_request on actor errors. (diff)
parentShow 'Event' object types as Notes. (diff)
downloadsnac2-0a11d70fbecd69e0c93000581b800ff434d42767.tar.gz
snac2-0a11d70fbecd69e0c93000581b800ff434d42767.tar.xz
snac2-0a11d70fbecd69e0c93000581b800ff434d42767.zip
Fixed git conflict.
Diffstat (limited to 'html.c')
-rw-r--r--html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index 0cdb608..201456e 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)
256 int priv = 0; 256 int priv = 0;
257 const char *type = xs_dict_get(msg, "type"); 257 const char *type = xs_dict_get(msg, "type");
258 258
259 if (xs_match(type, "Note|Question|Page|Article|Video")) 259 if (xs_match(type, POSTLIKE_OBJECT_TYPE))
260 url = xs_dict_get(msg, "id"); 260 url = xs_dict_get(msg, "id");
261 261
262 priv = !is_msg_public(msg); 262 priv = !is_msg_public(msg);
@@ -1405,8 +1405,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
1405 html_msg_icon(read_only ? NULL : user, xs_dict_get(msg, "actor"), msg))); 1405 html_msg_icon(read_only ? NULL : user, xs_dict_get(msg, "actor"), msg)));
1406 } 1406 }
1407 else 1407 else
1408 if (!xs_match(type, "Note|Question|Page|Article|Video")) { 1408 if (!xs_match(type, POSTLIKE_OBJECT_TYPE)) {
1409 /* skip oddities */ 1409 /* skip oddities */
1410 snac_debug(user, 1, xs_fmt("html_entry: ignoring object type '%s' %s", type, id));
1410 return NULL; 1411 return NULL;
1411 } 1412 }
1412 1413