Forráskód Böngészése

maybe a fix for username emojis

green 1 éve
szülő
commit
d19806a72d
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      activitypub.c

+ 5 - 0
activitypub.c

@@ -1327,6 +1327,11 @@ xs_dict *msg_actor(snac *snac)
     msg = xs_dict_set(msg, "preferredUsername", snac->uid);
     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
+    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);
     f_bio = process_tags(snac, f_bio_2, &tags);
     msg = xs_dict_set(msg, "summary", f_bio);