diff options
| author | 2025-04-13 15:44:24 +0200 | |
|---|---|---|
| committer | 2025-04-13 15:49:18 +0200 | |
| commit | 0c03e6c9d9a6b65fede94cc9eab34a05746f8d5e (patch) | |
| tree | 25ff6d1bec2c143978f356e2c5d7ea472755853a | |
| parent | emoji variant selector in react notifications (diff) | |
| download | penes-snac2-0c03e6c9d9a6b65fede94cc9eab34a05746f8d5e.tar.gz penes-snac2-0c03e6c9d9a6b65fede94cc9eab34a05746f8d5e.tar.xz penes-snac2-0c03e6c9d9a6b65fede94cc9eab34a05746f8d5e.zip | |
cleaned up old changes and outdated comments
| -rw-r--r-- | activitypub.c | 5 | ||||
| -rw-r--r-- | format.c | 1 | ||||
| -rw-r--r-- | html.c | 4 |
3 files changed, 2 insertions, 8 deletions
diff --git a/activitypub.c b/activitypub.c index ee7c9b1..2403a62 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -34,7 +34,7 @@ const char *susie_cool = | |||
| 34 | "+ZcgN7wF7ZVihXkfSlWIVzIA6dbQzaygllpNuTX" | 34 | "+ZcgN7wF7ZVihXkfSlWIVzIA6dbQzaygllpNuTX" |
| 35 | "ZmmFNlvxADX1+o0cUPMbAAAAAElFTkSuQmCC"; | 35 | "ZmmFNlvxADX1+o0cUPMbAAAAAElFTkSuQmCC"; |
| 36 | 36 | ||
| 37 | const char *susie_muertos = | 37 | const char *susie_muertos = |
| 38 | "iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAAC" | 38 | "iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAAC" |
| 39 | "CEkxzAAAAV0lEQVQoz4XQsQ0AMQxCUW/A/lv+DT" | 39 | "CEkxzAAAAV0lEQVQoz4XQsQ0AMQxCUW/A/lv+DT" |
| 40 | "ic6zGRolekIMyMELNp8PiCEw6Q4w4NoAt53IH5m" | 40 | "ic6zGRolekIMyMELNp8PiCEw6Q4w4NoAt53IH5m" |
| @@ -1328,8 +1328,7 @@ xs_dict *msg_actor(snac *snac) | |||
| 1328 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); | 1328 | msg = xs_dict_set(msg, "published", xs_dict_get(snac->config, "published")); |
| 1329 | 1329 | ||
| 1330 | // this exists so we get the emoji tags from our name too. | 1330 | // this exists so we get the emoji tags from our name too. |
| 1331 | // and then we just throw away the result, because it's kinda useless to have markdown in the dysplay name. | 1331 | // and then we just throw away the result, because it's kinda useless to have markdown in the display name. |
| 1332 | // right now, only emojies in bio actually work for local users | ||
| 1333 | xs *name_dummy = not_really_markdown(xs_dict_get(snac->config, "name"), NULL, &tags); | 1332 | xs *name_dummy = not_really_markdown(xs_dict_get(snac->config, "name"), NULL, &tags); |
| 1334 | 1333 | ||
| 1335 | xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags); | 1334 | xs *f_bio_2 = not_really_markdown(xs_dict_get(snac->config, "bio"), NULL, &tags); |
| @@ -10,7 +10,6 @@ | |||
| 10 | #include "xs_match.h" | 10 | #include "xs_match.h" |
| 11 | 11 | ||
| 12 | #include "snac.h" | 12 | #include "snac.h" |
| 13 | #include <string.h> | ||
| 14 | 13 | ||
| 15 | /* emoticons, people laughing and such */ | 14 | /* emoticons, people laughing and such */ |
| 16 | const char *smileys[] = { | 15 | const char *smileys[] = { |
| @@ -3136,10 +3136,6 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c | |||
| 3136 | 3136 | ||
| 3137 | if (!xs_is_null(c)) { | 3137 | if (!xs_is_null(c)) { |
| 3138 | xs *sc = sanitize(c); | 3138 | xs *sc = sanitize(c); |
| 3139 | |||
| 3140 | // replace shortnames in bio | ||
| 3141 | // bug: this somehow fires twice on one specific user | ||
| 3142 | // @ielenia@ck.catwithaclari.net | ||
| 3143 | sc = replace_shortnames(sc, xs_dict_get(actor, "tag"), 2, proxy); | 3139 | sc = replace_shortnames(sc, xs_dict_get(actor, "tag"), 2, proxy); |
| 3144 | 3140 | ||
| 3145 | xs_html *snac_content = xs_html_tag("div", | 3141 | xs_html *snac_content = xs_html_tag("div", |