summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-11-29 13:40:13 +0100
committerGravatar default2023-11-29 13:40:13 +0100
commit5b270b903c155843966443e77ed5ed747388975e (patch)
treed5d10d29a96467f2da2c2507b4647f2b9bafacd8 /html.c
parentDeleted redundant code. (diff)
downloadsnac2-5b270b903c155843966443e77ed5ed747388975e.tar.gz
snac2-5b270b903c155843966443e77ed5ed747388975e.tar.xz
snac2-5b270b903c155843966443e77ed5ed747388975e.zip
Deleted redundant code.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/html.c b/html.c
index 3e9eb81..971af07 100644
--- a/html.c
+++ b/html.c
@@ -1198,7 +1198,6 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
1198 char *type = xs_dict_get(msg, "type"); 1198 char *type = xs_dict_get(msg, "type");
1199 char *actor; 1199 char *actor;
1200 char *v; 1200 char *v;
1201 xs *boosts = NULL;
1202 1201
1203 /* do not show non-public messages in the public timeline */ 1202 /* do not show non-public messages in the public timeline */
1204 if ((local || !user) && !is_msg_public(msg)) 1203 if ((local || !user) && !is_msg_public(msg))
@@ -1307,8 +1306,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
1307 xs_html_raw(s1)); 1306 xs_html_raw(s1));
1308 } 1307 }
1309 1308
1310 if (boosts == NULL) 1309 xs *boosts = object_announces(id);
1311 boosts = object_announces(id);
1312 1310
1313 if (xs_list_len(boosts)) { 1311 if (xs_list_len(boosts)) {
1314 /* if somebody boosted this, show as origin */ 1312 /* if somebody boosted this, show as origin */