commit c523216

default  ·  2025-02-14 08:32:37 +0000 UTC
parent 8660503
More variable renaming.
1 files changed,  +9, -9
M html.c
M html.c
+9, -9
 1@@ -2896,7 +2896,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
 2 }
 3 
 4 
 5-xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, const char *proxy)
 6+xs_html *html_people_list(snac *user, xs_list *list, char *header, char *t, const char *proxy)
 7 {
 8     xs_html *snac_posts;
 9     xs_html *people = xs_html_tag("div",
10@@ -2921,7 +2921,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
11                     xs_html_attr("name", md5)),
12                 xs_html_tag("div",
13                     xs_html_attr("class", "snac-post-header"),
14-                    html_actor_icon(snac, actor, xs_dict_get(actor, "published"),
15+                    html_actor_icon(user, actor, xs_dict_get(actor, "published"),
16                                     NULL, NULL, 0, 1, proxy, NULL, NULL)));
17 
18             /* content (user bio) */
19@@ -2945,7 +2945,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
20             }
21 
22             /* buttons */
23-            xs *btn_form_action = xs_fmt("%s/admin/action", snac->actor);
24+            xs *btn_form_action = xs_fmt("%s/admin/action", user->actor);
25 
26             xs_html *snac_controls = xs_html_tag("div",
27                 xs_html_attr("class",   "snac-controls"));
28@@ -2965,12 +2965,12 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
29 
30             xs_html_add(snac_controls, form);
31 
32-            if (following_check(snac, actor_id)) {
33+            if (following_check(user, actor_id)) {
34                 xs_html_add(form,
35                     html_button("unfollow", L("Unfollow"),
36                                 L("Stop following this user's activity")));
37 
38-                if (is_limited(snac, actor_id))
39+                if (is_limited(user, actor_id))
40                     xs_html_add(form,
41                         html_button("unlimit", L("Unlimit"),
42                                 L("Allow announces (boosts) from this user")));
43@@ -2984,12 +2984,12 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
44                     html_button("follow", L("Follow"),
45                                 L("Start following this user's activity")));
46 
47-                if (follower_check(snac, actor_id))
48+                if (follower_check(user, actor_id))
49                     xs_html_add(form,
50                         html_button("delete", L("Delete"), L("Delete this user")));
51             }
52 
53-            if (pending_check(snac, actor_id)) {
54+            if (pending_check(user, actor_id)) {
55                 xs_html_add(form,
56                     html_button("approve", L("Approve"),
57                                 L("Approve this follow request")));
58@@ -2998,7 +2998,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
59                     html_button("discard", L("Discard"), L("Discard this follow request")));
60             }
61 
62-            if (is_muted(snac, actor_id))
63+            if (is_muted(user, actor_id))
64                 xs_html_add(form,
65                     html_button("unmute", L("Unmute"),
66                                 L("Stop blocking activities from this user")));
67@@ -3013,7 +3013,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons
68 
69             xs_html_add(snac_controls,
70                 xs_html_tag("p", NULL),
71-                html_note(snac, L("Direct Message..."),
72+                html_note(user, L("Direct Message..."),
73                     dm_div_id, dm_form_id,
74                     "", "",
75                     NULL, actor_id,