diff options
| author | 2025-12-19 09:54:50 +0100 | |
|---|---|---|
| committer | 2025-12-19 09:54:50 +0100 | |
| commit | e233f3f904e64d6ecaffdf68f8532e1587681fe3 (patch) | |
| tree | 334940d6e1c765a2cd5244385f3445f898cf9473 | |
| parent | Updated CSS. (diff) | |
| download | snac2-e233f3f904e64d6ecaffdf68f8532e1587681fe3.tar.gz snac2-e233f3f904e64d6ecaffdf68f8532e1587681fe3.tar.xz snac2-e233f3f904e64d6ecaffdf68f8532e1587681fe3.zip | |
Some fixes.
Diffstat (limited to '')
| -rw-r--r-- | html.c | 9 | ||||
| -rw-r--r-- | mastoapi.c | 2 |
2 files changed, 6 insertions, 5 deletions
| @@ -2500,11 +2500,12 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, | |||
| 2500 | shortname = xs_dict_get(m, "content"); | 2500 | shortname = xs_dict_get(m, "content"); |
| 2501 | 2501 | ||
| 2502 | const xs_list *items = xs_dict_get(sfrl, content); | 2502 | const xs_list *items = xs_dict_get(sfrl, content); |
| 2503 | const char *nb = xs_list_get(items, 0); | ||
| 2504 | const xs_list *actors = xs_list_get(items, 1); | ||
| 2505 | const char me = *xs_list_get(items, 2) == '1'; | ||
| 2506 | 2503 | ||
| 2507 | if (!xs_is_null(nb)) { | 2504 | if (!xs_is_null(items)) { |
| 2505 | const char *nb = xs_list_get(items, 0); | ||
| 2506 | const xs_list *actors = xs_list_get(items, 1); | ||
| 2507 | const char me = *xs_list_get(items, 2) == '1'; | ||
| 2508 | |||
| 2508 | is_emoji = 1; | 2509 | is_emoji = 1; |
| 2509 | 2510 | ||
| 2510 | xs *al = xs_join(actors, ",\n\t"); | 2511 | xs *al = xs_join(actors, ",\n\t"); |
| @@ -1174,7 +1174,7 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) | |||
| 1174 | /* NOTE: idk when there are no actor, but i encountered that bug. | 1174 | /* NOTE: idk when there are no actor, but i encountered that bug. |
| 1175 | * Probably because of one of my previous attempts. | 1175 | * Probably because of one of my previous attempts. |
| 1176 | * Keeping this just in case, can remove later */ | 1176 | * Keeping this just in case, can remove later */ |
| 1177 | const char *me = actor && strcmp(actor, snac->actor) == 0 ? | 1177 | const char *me = actor && snac && strcmp(actor, snac->actor) == 0 ? |
| 1178 | xs_stock(XSTYPE_TRUE) : xs_stock(XSTYPE_FALSE); | 1178 | xs_stock(XSTYPE_TRUE) : xs_stock(XSTYPE_FALSE); |
| 1179 | int count = 1; | 1179 | int count = 1; |
| 1180 | 1180 | ||