mirror of
https://codeberg.org/grunfink/snac2.git
synced 2025-01-12 17:13:39 +00:00
Check for existing id.
This commit is contained in:
parent
203db3b09e
commit
e0ba66a53e
2 changed files with 2 additions and 2 deletions
2
html.c
2
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")))
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue