diff options
| author | 2025-02-14 09:32:37 +0100 | |
|---|---|---|
| committer | 2025-02-14 09:32:37 +0100 | |
| commit | c523216bf3fbee74897f15b4526e0ea5bef22c90 (patch) | |
| tree | 8a7bc5c192faff58e2462bcb98d976ed0aa431b3 /html.c | |
| parent | More variable renaming. (diff) | |
| download | snac2-c523216bf3fbee74897f15b4526e0ea5bef22c90.tar.gz snac2-c523216bf3fbee74897f15b4526e0ea5bef22c90.tar.xz snac2-c523216bf3fbee74897f15b4526e0ea5bef22c90.zip | |
More variable renaming.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 18 |
1 files changed, 9 insertions, 9 deletions
| @@ -2896,7 +2896,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, | |||
| 2896 | } | 2896 | } |
| 2897 | 2897 | ||
| 2898 | 2898 | ||
| 2899 | xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, const char *proxy) | 2899 | xs_html *html_people_list(snac *user, xs_list *list, char *header, char *t, const char *proxy) |
| 2900 | { | 2900 | { |
| 2901 | xs_html *snac_posts; | 2901 | xs_html *snac_posts; |
| 2902 | xs_html *people = xs_html_tag("div", | 2902 | xs_html *people = xs_html_tag("div", |
| @@ -2921,7 +2921,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons | |||
| 2921 | xs_html_attr("name", md5)), | 2921 | xs_html_attr("name", md5)), |
| 2922 | xs_html_tag("div", | 2922 | xs_html_tag("div", |
| 2923 | xs_html_attr("class", "snac-post-header"), | 2923 | xs_html_attr("class", "snac-post-header"), |
| 2924 | html_actor_icon(snac, actor, xs_dict_get(actor, "published"), | 2924 | html_actor_icon(user, actor, xs_dict_get(actor, "published"), |
| 2925 | NULL, NULL, 0, 1, proxy, NULL, NULL))); | 2925 | NULL, NULL, 0, 1, proxy, NULL, NULL))); |
| 2926 | 2926 | ||
| 2927 | /* content (user bio) */ | 2927 | /* content (user bio) */ |
| @@ -2945,7 +2945,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons | |||
| 2945 | } | 2945 | } |
| 2946 | 2946 | ||
| 2947 | /* buttons */ | 2947 | /* buttons */ |
| 2948 | xs *btn_form_action = xs_fmt("%s/admin/action", snac->actor); | 2948 | xs *btn_form_action = xs_fmt("%s/admin/action", user->actor); |
| 2949 | 2949 | ||
| 2950 | xs_html *snac_controls = xs_html_tag("div", | 2950 | xs_html *snac_controls = xs_html_tag("div", |
| 2951 | xs_html_attr("class", "snac-controls")); | 2951 | xs_html_attr("class", "snac-controls")); |
| @@ -2965,12 +2965,12 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons | |||
| 2965 | 2965 | ||
| 2966 | xs_html_add(snac_controls, form); | 2966 | xs_html_add(snac_controls, form); |
| 2967 | 2967 | ||
| 2968 | if (following_check(snac, actor_id)) { | 2968 | if (following_check(user, actor_id)) { |
| 2969 | xs_html_add(form, | 2969 | xs_html_add(form, |
| 2970 | html_button("unfollow", L("Unfollow"), | 2970 | html_button("unfollow", L("Unfollow"), |
| 2971 | L("Stop following this user's activity"))); | 2971 | L("Stop following this user's activity"))); |
| 2972 | 2972 | ||
| 2973 | if (is_limited(snac, actor_id)) | 2973 | if (is_limited(user, actor_id)) |
| 2974 | xs_html_add(form, | 2974 | xs_html_add(form, |
| 2975 | html_button("unlimit", L("Unlimit"), | 2975 | html_button("unlimit", L("Unlimit"), |
| 2976 | L("Allow announces (boosts) from this user"))); | 2976 | L("Allow announces (boosts) from this user"))); |
| @@ -2984,12 +2984,12 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons | |||
| 2984 | html_button("follow", L("Follow"), | 2984 | html_button("follow", L("Follow"), |
| 2985 | L("Start following this user's activity"))); | 2985 | L("Start following this user's activity"))); |
| 2986 | 2986 | ||
| 2987 | if (follower_check(snac, actor_id)) | 2987 | if (follower_check(user, actor_id)) |
| 2988 | xs_html_add(form, | 2988 | xs_html_add(form, |
| 2989 | html_button("delete", L("Delete"), L("Delete this user"))); | 2989 | html_button("delete", L("Delete"), L("Delete this user"))); |
| 2990 | } | 2990 | } |
| 2991 | 2991 | ||
| 2992 | if (pending_check(snac, actor_id)) { | 2992 | if (pending_check(user, actor_id)) { |
| 2993 | xs_html_add(form, | 2993 | xs_html_add(form, |
| 2994 | html_button("approve", L("Approve"), | 2994 | html_button("approve", L("Approve"), |
| 2995 | L("Approve this follow request"))); | 2995 | L("Approve this follow request"))); |
| @@ -2998,7 +2998,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons | |||
| 2998 | html_button("discard", L("Discard"), L("Discard this follow request"))); | 2998 | html_button("discard", L("Discard"), L("Discard this follow request"))); |
| 2999 | } | 2999 | } |
| 3000 | 3000 | ||
| 3001 | if (is_muted(snac, actor_id)) | 3001 | if (is_muted(user, actor_id)) |
| 3002 | xs_html_add(form, | 3002 | xs_html_add(form, |
| 3003 | html_button("unmute", L("Unmute"), | 3003 | html_button("unmute", L("Unmute"), |
| 3004 | L("Stop blocking activities from this user"))); | 3004 | L("Stop blocking activities from this user"))); |
| @@ -3013,7 +3013,7 @@ xs_html *html_people_list(snac *snac, xs_list *list, char *header, char *t, cons | |||
| 3013 | 3013 | ||
| 3014 | xs_html_add(snac_controls, | 3014 | xs_html_add(snac_controls, |
| 3015 | xs_html_tag("p", NULL), | 3015 | xs_html_tag("p", NULL), |
| 3016 | html_note(snac, L("Direct Message..."), | 3016 | html_note(user, L("Direct Message..."), |
| 3017 | dm_div_id, dm_form_id, | 3017 | dm_div_id, dm_form_id, |
| 3018 | "", "", | 3018 | "", "", |
| 3019 | NULL, actor_id, | 3019 | NULL, actor_id, |