Bladeren bron

cleaned up old changes and outdated comments

green 1 jaar geleden
bovenliggende
commit
0c03e6c9d9
3 gewijzigde bestanden met toevoegingen van 2 en 8 verwijderingen
  1. 2 3
      activitypub.c
  2. 0 1
      format.c
  3. 0 4
      html.c

+ 2 - 3
activitypub.c

@@ -34,7 +34,7 @@ const char *susie_cool =
     "+ZcgN7wF7ZVihXkfSlWIVzIA6dbQzaygllpNuTX"
     "ZmmFNlvxADX1+o0cUPMbAAAAAElFTkSuQmCC";
 
-const char *susie_muertos = 
+const char *susie_muertos =
     "iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAAC"
     "CEkxzAAAAV0lEQVQoz4XQsQ0AMQxCUW/A/lv+DT"
     "ic6zGRolekIMyMELNp8PiCEw6Q4w4NoAt53IH5m"
@@ -1328,8 +1328,7 @@ xs_dict *msg_actor(snac *snac)
     msg = xs_dict_set(msg, "published",         xs_dict_get(snac->config, "published"));
 
     // this exists so we get the emoji tags from our name too.
-    // and then we just throw away the result, because it's kinda useless to have markdown in the dysplay name.
-    // right now, only emojies in bio actually work for local users
+    // and then we just throw away the result, because it's kinda useless to have markdown in the display name.
     xs *name_dummy = not_really_markdown(xs_dict_get(snac->config, "name"), NULL, &tags);
 
     xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags);

+ 0 - 1
format.c

@@ -10,7 +10,6 @@
 #include "xs_match.h"
 
 #include "snac.h"
-#include <string.h>
 
 /* emoticons, people laughing and such */
 const char *smileys[] = {

+ 0 - 4
html.c

@@ -3136,10 +3136,6 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c
 
             if (!xs_is_null(c)) {
                 xs *sc = sanitize(c);
-
-                // replace shortnames in bio
-                // bug: this somehow fires twice on one specific user
-                // @ielenia@ck.catwithaclari.net
                 sc = replace_shortnames(sc, xs_dict_get(actor, "tag"), 2, proxy);
 
                 xs_html *snac_content = xs_html_tag("div",