summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/html.c b/html.c
index 58501f2..5c2c4d7 100644
--- a/html.c
+++ b/html.c
@@ -188,7 +188,7 @@ xs_str *html_actor_icon(xs_str *os, char *actor,
188} 188}
189 189
190 190
191xs_str *html_msg_icon(snac *snac, xs_str *os, const xs_dict *msg) 191xs_str *html_msg_icon(xs_str *os, const xs_dict *msg)
192{ 192{
193 char *actor_id; 193 char *actor_id;
194 xs *actor = NULL; 194 xs *actor = NULL;
@@ -196,7 +196,7 @@ xs_str *html_msg_icon(snac *snac, xs_str *os, const xs_dict *msg)
196 if ((actor_id = xs_dict_get(msg, "attributedTo")) == NULL) 196 if ((actor_id = xs_dict_get(msg, "attributedTo")) == NULL)
197 actor_id = xs_dict_get(msg, "actor"); 197 actor_id = xs_dict_get(msg, "actor");
198 198
199 if (actor_id && valid_status(actor_get(snac, actor_id, &actor))) { 199 if (actor_id && valid_status(actor_get(actor_id, &actor))) {
200 char *date = NULL; 200 char *date = NULL;
201 char *udate = NULL; 201 char *udate = NULL;
202 char *url = NULL; 202 char *url = NULL;
@@ -870,7 +870,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
870 xs *s1 = xs_fmt("<div class=\"snac-origin\">%s</div>\n", L("follows you")); 870 xs *s1 = xs_fmt("<div class=\"snac-origin\">%s</div>\n", L("follows you"));
871 s = xs_str_cat(s, s1); 871 s = xs_str_cat(s, s1);
872 872
873 s = html_msg_icon(snac, s, msg); 873 s = html_msg_icon(s, msg);
874 874
875 s = xs_str_cat(s, "</div>\n</div>\n"); 875 s = xs_str_cat(s, "</div>\n</div>\n");
876 876
@@ -894,7 +894,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
894 if (is_muted(snac, actor)) 894 if (is_muted(snac, actor))
895 return os; 895 return os;
896 896
897 if (strcmp(actor, snac->actor) != 0 && !valid_status(actor_get(snac, actor, NULL))) 897 if (strcmp(actor, snac->actor) != 0 && !valid_status(actor_get(actor, NULL)))
898 return os; 898 return os;
899 899
900 if (level == 0) 900 if (level == 0)
@@ -990,7 +990,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
990 } 990 }
991 } 991 }
992 992
993 s = html_msg_icon(snac, s, msg); 993 s = html_msg_icon(s, msg);
994 994
995 /* add the content */ 995 /* add the content */
996 s = xs_str_cat(s, "</div>\n<div class=\"e-content snac-content\">\n"); /** **/ 996 s = xs_str_cat(s, "</div>\n<div class=\"e-content snac-content\">\n"); /** **/
@@ -1450,7 +1450,7 @@ xs_str *html_people_list(snac *snac, xs_str *os, xs_list *list, const char *head
1450 xs *md5 = xs_md5_hex(actor_id, strlen(actor_id)); 1450 xs *md5 = xs_md5_hex(actor_id, strlen(actor_id));
1451 xs *actor = NULL; 1451 xs *actor = NULL;
1452 1452
1453 if (valid_status(actor_get(snac, actor_id, &actor))) { 1453 if (valid_status(actor_get(actor_id, &actor))) {
1454 s = xs_str_cat(s, "<div class=\"snac-post\">\n<div class=\"snac-post-header\">\n"); 1454 s = xs_str_cat(s, "<div class=\"snac-post\">\n<div class=\"snac-post-header\">\n");
1455 1455
1456 s = html_actor_icon(s, actor, xs_dict_get(actor, "published"), NULL, NULL, 0); 1456 s = html_actor_icon(s, actor, xs_dict_get(actor, "published"), NULL, NULL, 0);
@@ -1608,7 +1608,7 @@ xs_str *html_notifications(snac *snac)
1608 const char *actor_id = xs_dict_get(noti, "actor"); 1608 const char *actor_id = xs_dict_get(noti, "actor");
1609 xs *actor = NULL; 1609 xs *actor = NULL;
1610 1610
1611 if (!valid_status(actor_get(snac, actor_id, &actor))) 1611 if (!valid_status(actor_get(actor_id, &actor)))
1612 continue; 1612 continue;
1613 1613
1614 xs *a_name = actor_name(actor); 1614 xs *a_name = actor_name(actor);