diff options
| author | grunfink <grunfink@comam.es> | 2025-06-11 04:40:47 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-06-11 04:40:47 +0200 |
| commit | cc0e90fbf7c22991bf72af38c5d47d8b3a5ab552 (patch) | |
| tree | c5deecb1a2f16b1690f323ac525b65ffad4423ac /mastoapi.c | |
| parent | 408d7fcd0a0e4368120c02850b620abc4d10a9d0 (diff) | |
mastoapi: fixed reblog identifiers.
This fixes weird behaviour in apps like Tusky, where boosts' content disappear
after clicking on them.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1134,9 +1134,15 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg) bst = xs_dict_set(bst, "content", ""); bst = xs_dict_set(bst, "reblog", st); + /* reblogs must have their own id */ + xs *b_id = xs_fmt("%s%s", xs_dict_get(st, "id"), boosted_by_md5); + bst = xs_dict_set(bst, "id", b_id); + xs_free(st); st = bst; } + else + xs_free(bst); } return st; |