From 9ee991c36fea2b0fb427130ef6e3e9ac28d80806 Mon Sep 17 00:00:00 2001 From: Kirby Date: Sun, 27 Oct 2024 01:39:48 -0500 Subject: Wrap user mention in post around span to ensure frontends do not display a link preview for it Some frontends won't recognize a user mention/tag as an actual mention unless a span with a special class is wrapped around it, so it will erronously generate a link preview for it if the span is missing: https://ak.ari.lt/objects/8e18d701-9fdb-4ba8-8652-30dc2fef58ab --- activitypub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("%s", actor, n); + link = xs_fmt("%s", actor, n); } if (!xs_is_null(link)) -- cgit v1.2.3