diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2024-10-27 07:17:58 +0000 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2024-10-27 07:17:58 +0000 |
| commit | 0d6659af739ac45c7bb8e9bc6e916425076e9c71 (patch) | |
| tree | 4216868136c0f5417740350568e6898e78b9058f | |
| parent | d031437a6e4f05ea3eb3ef74448f873945e9ee7f (diff) | |
| parent | 9ee991c36fea2b0fb427130ef6e3e9ac28d80806 (diff) | |
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
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 6300fc9..5b9e2fe 100644 --- a/activitypub.c +++ b/activitypub.c @@ -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)) |