mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Don't create a link to the people page from the public one.
This commit is contained in:
parent
92c27a3038
commit
4fe99ed722
1 changed files with 6 additions and 1 deletions
7
html.c
7
html.c
|
@ -1341,7 +1341,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int local,
|
||||||
xs *name = actor_name(actor_r);
|
xs *name = actor_name(actor_r);
|
||||||
|
|
||||||
if (!xs_is_null(name)) {
|
if (!xs_is_null(name)) {
|
||||||
xs *href = xs_fmt("%s/people#%s", user->actor, p);
|
xs *href = NULL;
|
||||||
|
|
||||||
|
if (user != NULL)
|
||||||
|
href = xs_fmt("%s/people#%s", user->actor, p);
|
||||||
|
else
|
||||||
|
href = xs_dup(xs_dict_get(actor_r, "id"));
|
||||||
|
|
||||||
xs_html_add(post_header,
|
xs_html_add(post_header,
|
||||||
xs_html_tag("div",
|
xs_html_tag("div",
|
||||||
|
|
Loading…
Reference in a new issue