Parcourir la source

Added a 'top' anchor to keep elinks from complaining.

grunfink il y a 1 mois
Parent
commit
437f01316c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      html.c

+ 3 - 1
html.c

@@ -1151,7 +1151,9 @@ static xs_html *html_user_body(snac *user, int read_only)
     if (user && !read_only && xs_is_true(xs_dict_get(srv_config, "proxy_media")))
     if (user && !read_only && xs_is_true(xs_dict_get(srv_config, "proxy_media")))
         proxy = user->actor;
         proxy = user->actor;
 
 
-    xs_html *body = xs_html_tag("body", NULL);
+    xs_html *body = xs_html_tag("body",
+        xs_html_tag("a",
+            xs_html_attr("name", "top")));
 
 
     /* top nav */
     /* top nav */
     xs_html *top_nav = xs_html_tag("nav",
     xs_html *top_nav = xs_html_tag("nav",