mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 09:35:04 +00:00
Merge pull request 'Wrap user mention in post around span to ensure frontends do not display a link preview for it' (#213) from nyanide/snac2:evil into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/213
This commit is contained in:
commit
0d6659af73
1 changed files with 1 additions and 1 deletions
|
@ -760,7 +760,7 @@ xs_str *process_tags(snac *snac, const char *content, xs_list **tag)
|
|||
|
||||
tl = xs_list_append(tl, d);
|
||||
|
||||
link = xs_fmt("<a href=\"%s\" class=\"u-url h-card mention\">%s</a>", actor, n);
|
||||
link = xs_fmt("<span class=\"h-card\"><a href=\"%s\" class=\"u-url mention\">%s</a></span>", actor, n);
|
||||
}
|
||||
|
||||
if (!xs_is_null(link))
|
||||
|
|
Loading…
Reference in a new issue