summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/html.c b/html.c
index 9d6fbc6..2aa6514 100644
--- a/html.c
+++ b/html.c
@@ -79,7 +79,7 @@ xs_str *actor_name(xs_dict *actor)
79} 79}
80 80
81 81
82d_char *html_actor_icon(snac *snac, d_char *os, char *actor, 82xs_str *html_actor_icon(xs_str *os, char *actor,
83 const char *date, const char *udate, const char *url, int priv) 83 const char *date, const char *udate, const char *url, int priv)
84{ 84{
85 xs *s = xs_str_new(NULL); 85 xs *s = xs_str_new(NULL);
@@ -168,7 +168,7 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg)
168 date = xs_dict_get(msg, "published"); 168 date = xs_dict_get(msg, "published");
169 udate = xs_dict_get(msg, "updated"); 169 udate = xs_dict_get(msg, "updated");
170 170
171 os = html_actor_icon(snac, os, actor, date, udate, url, priv); 171 os = html_actor_icon(os, actor, date, udate, url, priv);
172 } 172 }
173 173
174 return os; 174 return os;
@@ -983,7 +983,7 @@ d_char *html_entry(snac *snac, d_char *os, char *msg, int local,
983} 983}
984 984
985 985
986d_char *html_user_footer(snac *snac, d_char *s) 986xs_str *html_user_footer(xs_str *s)
987{ 987{
988 xs *s1 = xs_fmt( 988 xs *s1 = xs_fmt(
989 "<div class=\"snac-footer\">\n" 989 "<div class=\"snac-footer\">\n"
@@ -1064,7 +1064,7 @@ d_char *html_timeline(snac *snac, char *list, int local, int skip, int show, int
1064 s = xs_str_cat(s, s1); 1064 s = xs_str_cat(s, s1);
1065 } 1065 }
1066 1066
1067 s = html_user_footer(snac, s); 1067 s = html_user_footer(s);
1068 1068
1069 s = xs_str_cat(s, "</body>\n</html>\n"); 1069 s = xs_str_cat(s, "</body>\n</html>\n");
1070 1070
@@ -1088,8 +1088,7 @@ d_char *html_people_list(snac *snac, d_char *os, d_char *list, const char *heade
1088 if (valid_status(actor_get(snac, actor_id, &actor))) { 1088 if (valid_status(actor_get(snac, actor_id, &actor))) {
1089 s = xs_str_cat(s, "<div class=\"snac-post\">\n"); 1089 s = xs_str_cat(s, "<div class=\"snac-post\">\n");
1090 1090
1091 s = html_actor_icon(snac, s, actor, xs_dict_get(actor, "published"), NULL, NULL, 0); 1091 s = html_actor_icon(s, actor, xs_dict_get(actor, "published"), NULL, NULL, 0);
1092
1093 1092
1094 /* content (user bio) */ 1093 /* content (user bio) */
1095 char *c = xs_dict_get(actor, "summary"); 1094 char *c = xs_dict_get(actor, "summary");
@@ -1182,7 +1181,7 @@ d_char *html_people(snac *snac)
1182 1181
1183 s = html_people_list(snac, s, wers, L("People that follows you"), "e"); 1182 s = html_people_list(snac, s, wers, L("People that follows you"), "e");
1184 1183
1185 s = html_user_footer(snac, s); 1184 s = html_user_footer(s);
1186 1185
1187 s = xs_str_cat(s, "</body>\n</html>\n"); 1186 s = xs_str_cat(s, "</body>\n</html>\n");
1188 1187
@@ -1277,7 +1276,7 @@ xs_str *html_notifications(snac *snac)
1277 s = xs_str_cat(s, s1); 1276 s = xs_str_cat(s, s1);
1278 } 1277 }
1279 1278
1280 s = html_user_footer(snac, s); 1279 s = html_user_footer(s);
1281 1280
1282 s = xs_str_cat(s, "</body>\n</html>\n"); 1281 s = xs_str_cat(s, "</body>\n</html>\n");
1283 1282