summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-12-04 05:53:12 +0100
committerGravatar default2024-12-04 05:53:12 +0100
commite0ba66a53e8cd89b900b895675588c29d5bb7a2d (patch)
tree70823c90d3d8bdfc11b681fe8aa0d4884d3111e4 /html.c
parentFixed bug in blocked instance rejection. (diff)
downloadsnac2-e0ba66a53e8cd89b900b895675588c29d5bb7a2d.tar.gz
snac2-e0ba66a53e8cd89b900b895675588c29d5bb7a2d.tar.xz
snac2-e0ba66a53e8cd89b900b895675588c29d5bb7a2d.zip
Check for existing id.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 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,
1524 if ((read_only || !user) && !is_msg_public(msg)) 1524 if ((read_only || !user) && !is_msg_public(msg))
1525 return NULL; 1525 return NULL;
1526 1526
1527 if (is_instance_blocked(id)) 1527 if (id && is_instance_blocked(id))
1528 return NULL; 1528 return NULL;
1529 1529
1530 if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads"))) 1530 if (user && level == 0 && xs_is_true(xs_dict_get(user->config, "collapse_threads")))