summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-11-13 15:15:16 +0100
committerdefault <nobody@localhost>2022-11-13 15:15:16 +0100
commit21c676487a5278cbd70da935bcc9e1c7f1955e24 (patch)
tree396b276ab50eb37ef4ac4848acd58c9cee93c844
parent7ff6f928085e853b1bb7d113a6e7c435d76e6416 (diff)
Set "u-url mention" class for mentions.
-rw-r--r--activitypub.c2
-rw-r--r--html.c2
2 files changed, 2 insertions, 2 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)
if (valid_status(status)) {
xs *d = xs_dict_new();
xs *n = xs_fmt("@%s", uid);
- xs *l = xs_fmt("<a href=\"%s\">%s</a>", actor, n);
+ xs *l = xs_fmt("<a href=\"%s\" class=\"u-url mention\">%s</a>", actor, n);
d = xs_dict_append(d, "type", "Mention");
d = xs_dict_append(d, "href", actor);
diff --git a/html.c b/html.c
index 035de56..7b19a56 100644
--- a/html.c
+++ b/html.c
@@ -442,7 +442,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num)
xs *s1 = xs_fmt(
"<p><details><summary>%s</summary>\n"
- "<div class=\"snac-note\" id=\"%s_reply\">\n"
+ "<p><div class=\"snac-note\" id=\"%s_reply\">\n"
"<form method=\"post\" action=\"%s/admin/note\" "
"enctype=\"multipart/form-data\" id=\"%s_reply_form\">\n"
"<textarea class=\"snac-textarea\" name=\"content\" "