aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-12-04 05:53:12 +0100
committerdefault <nobody@localhost>2024-12-04 05:53:12 +0100
commite0ba66a53e8cd89b900b895675588c29d5bb7a2d (patch)
tree70823c90d3d8bdfc11b681fe8aa0d4884d3111e4
parent203db3b09e3ebf8677f75e83e5470b99c74de470 (diff)
Check for existing id.
-rw-r--r--html.c2
-rw-r--r--mastoapi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/html.c b/html.c
index 26831f5..9a01bea 100644
--- a/html.c
+++ b/html.c
@@ -1524,7 +1524,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
if ((read_only || !user) && !is_msg_public(msg))
return NULL;
- if (is_instance_blocked(id))
+ if (id && is_instance_blocked(id))
return NULL;
if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads")))
diff --git a/mastoapi.c b/mastoapi.c
index 0332629..ee9ecec 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1349,7 +1349,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
if (!xs_match(type, POSTLIKE_OBJECT_TYPE))
continue;
- if (is_instance_blocked(id))
+ if (id && is_instance_blocked(id))
continue;
const char *from = NULL;