snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 5c81dd88bcbea6374a6a91d0601505e4474cfc7a
parent 9ab8016f6cdea7ec57f014840f93acdf6e25671d
Author: default <nobody@localhost>
Date:   Tue,  1 Nov 2022 19:51:40 +0100

Added rel=nofollow to the admin link.

Diffstat:
Mhtml.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/html.c b/html.c @@ -168,7 +168,8 @@ d_char *html_user_header(snac *snac, d_char *s, int local) xs *s1; if (local) - s1 = xs_fmt("<a href=\"%s/admin\">%s</a></nav>\n", snac->actor, L("admin")); + s1 = xs_fmt("<a href=\"%s/admin\" rel=\"nofollow\">%s</a></nav>\n", + snac->actor, L("admin")); else s1 = xs_fmt("<a href=\"%s\">%s</a></nav>\n", snac->actor, L("public"));