commit 5b270b9

default  ·  2023-11-29 12:40:13 +0000 UTC
parent f3e7aff
Deleted redundant code.
1 files changed,  +1, -3
M html.c
M html.c
+1, -3
 1@@ -1198,7 +1198,6 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
 2     char *type  = xs_dict_get(msg, "type");
 3     char *actor;
 4     char *v;
 5-    xs *boosts = NULL;
 6 
 7     /* do not show non-public messages in the public timeline */
 8     if ((local || !user) && !is_msg_public(msg))
 9@@ -1307,8 +1306,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
10             xs_html_raw(s1));
11     }
12 
13-    if (boosts == NULL)
14-        boosts = object_announces(id);
15+    xs *boosts = object_announces(id);
16 
17     if (xs_list_len(boosts)) {
18         /* if somebody boosted this, show as origin */