mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Fixed bad actor value in the button bar for Peertube videos.
This commit is contained in:
parent
f162c07791
commit
54fff003f1
1 changed files with 2 additions and 3 deletions
5
html.c
5
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 *id = xs_dict_get(msg, "id");
|
||||||
char *actor = xs_dict_get(msg, "attributedTo");
|
|
||||||
char *group = xs_dict_get(msg, "audience");
|
char *group = xs_dict_get(msg, "audience");
|
||||||
|
|
||||||
xs *likes = object_likes(id);
|
xs *likes = object_likes(id);
|
||||||
|
@ -1848,7 +1847,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
|
||||||
|
|
||||||
if (!local && user) {
|
if (!local && user) {
|
||||||
xs_html_add(entry,
|
xs_html_add(entry,
|
||||||
html_entry_controls(user, msg, md5));
|
html_entry_controls(user, actor, msg, md5));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** children **/
|
/** children **/
|
||||||
|
|
Loading…
Reference in a new issue