diff options
| author | 2022-11-13 15:15:16 +0100 | |
|---|---|---|
| committer | 2022-11-13 15:15:16 +0100 | |
| commit | 21c676487a5278cbd70da935bcc9e1c7f1955e24 (patch) | |
| tree | 396b276ab50eb37ef4ac4848acd58c9cee93c844 /activitypub.c | |
| parent | Updated documentation. (diff) | |
| download | snac2-21c676487a5278cbd70da935bcc9e1c7f1955e24.tar.gz snac2-21c676487a5278cbd70da935bcc9e1c7f1955e24.tar.xz snac2-21c676487a5278cbd70da935bcc9e1c7f1955e24.zip | |
Set "u-url mention" class for mentions.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 6314314..82230ff 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -243,7 +243,7 @@ void process_tags(const char *content, d_char **n_content, d_char **tag) | |||
| 243 | if (valid_status(status)) { | 243 | if (valid_status(status)) { |
| 244 | xs *d = xs_dict_new(); | 244 | xs *d = xs_dict_new(); |
| 245 | xs *n = xs_fmt("@%s", uid); | 245 | xs *n = xs_fmt("@%s", uid); |
| 246 | xs *l = xs_fmt("<a href=\"%s\">%s</a>", actor, n); | 246 | xs *l = xs_fmt("<a href=\"%s\" class=\"u-url mention\">%s</a>", actor, n); |
| 247 | 247 | ||
| 248 | d = xs_dict_append(d, "type", "Mention"); | 248 | d = xs_dict_append(d, "type", "Mention"); |
| 249 | d = xs_dict_append(d, "href", actor); | 249 | d = xs_dict_append(d, "href", actor); |