commit 5d680a5

grunfink  ·  2025-06-25 10:47:07 +0000 UTC
parent bed5789
Fixed crash.
1 files changed,  +5, -4
M html.c
M html.c
+5, -4
 1@@ -3495,10 +3495,11 @@ xs_str *html_notifications(snac *user, int skip, int show)
 2             html_label);
 3 
 4         if (strcmp(type, "Follow") == 0 || strcmp(utype, "Follow") == 0 || strcmp(type, "Block") == 0) {
 5-            xs_html_add(entry,
 6-                xs_html_tag("div",
 7-                    xs_html_attr("class", "snac-post"),
 8-                    html_actor_icon(user, actor, NULL, NULL, NULL, 0, 0, proxy, NULL, NULL)));
 9+            if (actor)
10+                xs_html_add(entry,
11+                    xs_html_tag("div",
12+                        xs_html_attr("class", "snac-post"),
13+                        html_actor_icon(user, actor, NULL, NULL, NULL, 0, 0, proxy, NULL, NULL)));
14         }
15         else
16         if (strcmp(type, "Move") == 0) {