aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-06-25 12:47:07 +0200
committergrunfink <grunfink@comam.es>2025-06-25 12:47:07 +0200
commit5d680a5ba227c5275624fbeefe0cce05cfb60ee6 (patch)
treefafa1ad9e72a8ae47c26fc2f5bd2ee3742888553
parentbed5789dc67e1a52d2d9d0b5d8afd926d9d60e0f (diff)
Fixed crash.
-rw-r--r--html.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/html.c b/html.c
index aeecdf5..b482d10 100644
--- a/html.c
+++ b/html.c
@@ -3495,10 +3495,11 @@ xs_str *html_notifications(snac *user, int skip, int show)
html_label);
if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0 || strcmp(type, "Block") == 0) {
- xs_html_add(entry,
- xs_html_tag("div",
- xs_html_attr("class", "snac-post"),
- html_actor_icon(user, actor, NULL, NULL, NULL, 0, 0, proxy, NULL, NULL)));
+ if (actor)
+ xs_html_add(entry,
+ xs_html_tag("div",
+ xs_html_attr("class", "snac-post"),
+ html_actor_icon(user, actor, NULL, NULL, NULL, 0, 0, proxy, NULL, NULL)));
}
else
if (strcmp(type, "Move") == 0) {