summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2026-02-10 05:44:59 +0100
committerGravatar grunfink2026-02-10 05:44:59 +0100
commit6f8eb9ced3bd711a32bc36ad03d7892d647feeb1 (patch)
tree7ebf7b5d283f12950e6516b3b07e6ecb3b62bb85
parentMerge pull request 'Update Portuguese (Brazil) translation' (#554) from daltu... (diff)
downloadsnac2-6f8eb9ced3bd711a32bc36ad03d7892d647feeb1.tar.gz
snac2-6f8eb9ced3bd711a32bc36ad03d7892d647feeb1.tar.xz
snac2-6f8eb9ced3bd711a32bc36ad03d7892d647feeb1.zip
In timelines, always create a 'people/' link, not only if follower or following.
-rw-r--r--html.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/html.c b/html.c
index 8efae90..3201904 100644
--- a/html.c
+++ b/html.c
@@ -282,12 +282,8 @@ xs_html *html_actor_icon(snac *user, xs_dict *actor, const char *date,
282 } 282 }
283 283
284 if (user && !in_people) { 284 if (user && !in_people) {
285 /* if this actor is a follower or being followed, create an 285 xs *md5 = xs_md5_hex(actor_id, strlen(actor_id));
286 anchored link to the people page instead of the actor url */ 286 href = xs_fmt("%s/people/%s", user->actor, md5);
287 if (fwer || fwing) {
288 xs *md5 = xs_md5_hex(actor_id, strlen(actor_id));
289 href = xs_fmt("%s/people/%s", user->actor, md5);
290 }
291 } 287 }
292 288
293 if (href == NULL) 289 if (href == NULL)