commit bf9d8cb

default  ·  2025-02-14 08:25:57 +0000 UTC
parent fc6a975
More variable renaming.
1 files changed,  +2, -2
M html.c
M html.c
+2, -2
 1@@ -1502,7 +1502,7 @@ static xs_html *html_button(char *clss, char *label, char *hint)
 2 }
 3 
 4 
 5-xs_str *build_mentions(snac *snac, const xs_dict *msg)
 6+xs_str *build_mentions(snac *user, const xs_dict *msg)
 7 /* returns a string with the mentions in msg */
 8 {
 9     xs_str *s = xs_str_new(NULL);
10@@ -1516,7 +1516,7 @@ xs_str *build_mentions(snac *snac, const xs_dict *msg)
11         const char *name = xs_dict_get(v, "name");
12 
13         if (type && strcmp(type, "Mention") == 0 &&
14-            href && strcmp(href, snac->actor) != 0 && name) {
15+            href && strcmp(href, user->actor) != 0 && name) {
16             xs *s1 = NULL;
17 
18             if (name[0] != '@') {