summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-18 22:27:20 +0100
committerdefault <nobody@localhost>2024-01-18 22:27:20 +0100
commit54fff003f111c2bb4996996c93fb442dc430e9db (patch)
tree4859c995adc3c0144d5086cb4f801f2ec06d8113
parentf162c0779192a3ea19d6aecd692993723769e64e (diff)
Fixed bad actor value in the button bar for Peertube videos.
-rw-r--r--html.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/html.c b/html.c
index 327a6bc..87a96ba 100644
--- a/html.c
+++ b/html.c
@@ -1100,10 +1100,9 @@ xs_str *build_mentions(snac *snac, const xs_dict *msg)
}
-xs_html *html_entry_controls(snac *snac, const xs_dict *msg, const char *md5)
+xs_html *html_entry_controls(snac *snac, char *actor, const xs_dict *msg, const char *md5)
{
char *id = xs_dict_get(msg, "id");
- char *actor = xs_dict_get(msg, "attributedTo");
char *group = xs_dict_get(msg, "audience");
xs *likes = object_likes(id);
@@ -1848,7 +1847,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
if (!local && user) {
xs_html_add(entry,
- html_entry_controls(user, msg, md5));
+ html_entry_controls(user, actor, msg, md5));
}
/** children **/