diff options
| -rw-r--r-- | html.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -1100,10 +1100,9 @@ xs_str *build_mentions(snac *snac, const xs_dict *msg) | |||
| 1100 | } | 1100 | } |
| 1101 | 1101 | ||
| 1102 | 1102 | ||
| 1103 | xs_html *html_entry_controls(snac *snac, const xs_dict *msg, const char *md5) | 1103 | xs_html *html_entry_controls(snac *snac, char *actor, const xs_dict *msg, const char *md5) |
| 1104 | { | 1104 | { |
| 1105 | char *id = xs_dict_get(msg, "id"); | 1105 | char *id = xs_dict_get(msg, "id"); |
| 1106 | char *actor = xs_dict_get(msg, "attributedTo"); | ||
| 1107 | char *group = xs_dict_get(msg, "audience"); | 1106 | char *group = xs_dict_get(msg, "audience"); |
| 1108 | 1107 | ||
| 1109 | xs *likes = object_likes(id); | 1108 | xs *likes = object_likes(id); |
| @@ -1848,7 +1847,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local, | |||
| 1848 | 1847 | ||
| 1849 | if (!local && user) { | 1848 | if (!local && user) { |
| 1850 | xs_html_add(entry, | 1849 | xs_html_add(entry, |
| 1851 | html_entry_controls(user, msg, md5)); | 1850 | html_entry_controls(user, actor, msg, md5)); |
| 1852 | } | 1851 | } |
| 1853 | 1852 | ||
| 1854 | /** children **/ | 1853 | /** children **/ |