From cac1c6febd0ce90424831b15a9651026b4bb017c Mon Sep 17 00:00:00 2001 From: default Date: Sat, 12 Aug 2023 11:23:01 +0200 Subject: Rewritten actor_get() to not depend on a user. --- html.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 58501f2..5c2c4d7 100644 --- a/html.c +++ b/html.c @@ -188,7 +188,7 @@ xs_str *html_actor_icon(xs_str *os, char *actor, } -xs_str *html_msg_icon(snac *snac, xs_str *os, const xs_dict *msg) +xs_str *html_msg_icon(xs_str *os, const xs_dict *msg) { char *actor_id; xs *actor = NULL; @@ -196,7 +196,7 @@ xs_str *html_msg_icon(snac *snac, xs_str *os, const xs_dict *msg) if ((actor_id = xs_dict_get(msg, "attributedTo")) == NULL) actor_id = xs_dict_get(msg, "actor"); - if (actor_id && valid_status(actor_get(snac, actor_id, &actor))) { + if (actor_id && valid_status(actor_get(actor_id, &actor))) { char *date = NULL; char *udate = NULL; char *url = NULL; @@ -870,7 +870,7 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local, xs *s1 = xs_fmt("