commit 54fff00

default  ·  2024-01-18 21:27:20 +0000 UTC
parent f162c07
Fixed bad actor value in the button bar for Peertube videos.
1 files changed,  +2, -3
M html.c
M html.c
+2, -3
 1@@ -1100,10 +1100,9 @@ xs_str *build_mentions(snac *snac, const xs_dict *msg)
 2 }
 3 
 4 
 5-xs_html *html_entry_controls(snac *snac, const xs_dict *msg, const char *md5)
 6+xs_html *html_entry_controls(snac *snac, char *actor, const xs_dict *msg, const char *md5)
 7 {
 8     char *id    = xs_dict_get(msg, "id");
 9-    char *actor = xs_dict_get(msg, "attributedTo");
10     char *group = xs_dict_get(msg, "audience");
11 
12     xs *likes   = object_likes(id);
13@@ -1848,7 +1847,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
14 
15     if (!local && user) {
16         xs_html_add(entry,
17-            html_entry_controls(user, msg, md5));
18+            html_entry_controls(user, actor, msg, md5));
19     }
20 
21     /** children **/