commit e0ba66a

default  ·  2024-12-04 04:53:12 +0000 UTC
parent 203db3b
Check for existing id.
2 files changed,  +2, -2
M html.c
M html.c
+1, -1
1@@ -1524,7 +1524,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2     if ((read_only || !user) && !is_msg_public(msg))
3         return NULL;
4 
5-    if (is_instance_blocked(id))
6+    if (id && is_instance_blocked(id))
7         return NULL;
8 
9     if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads")))
+1, -1
1@@ -1349,7 +1349,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
2             if (!xs_match(type, POSTLIKE_OBJECT_TYPE))
3                 continue;
4 
5-            if (is_instance_blocked(id))
6+            if (id && is_instance_blocked(id))
7                 continue;
8 
9             const char *from = NULL;