diff options
author | default <nobody@localhost> | 2023-05-01 17:20:49 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-01 17:20:49 +0200 |
commit | 4595a3685992a8f31b86cca0ecf10e286dec52eb (patch) | |
tree | 6be6e834c212a9e4676182c26baf4a937d34b6da /mastoapi.c | |
parent | c21bbd5f7ca814d65a3759d429c1d673bee5081b (diff) |
Partial support for mastoapi unfavourite / unreblog.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1670,7 +1670,11 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, } else if (strcmp(op, "unfavourite") == 0) { - /* snac does not support Undo+Like */ + /* partial support: as the original Like message + is not stored anywhere here, it's not possible + to send an Undo + Like; the only thing done here + is to delete the actor from the list of likes */ + object_unadmire(id, snac.actor, 1); } else if (strcmp(op, "reblog") == 0) { @@ -1685,7 +1689,8 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, } else if (strcmp(op, "unreblog") == 0) { - /* snac does not support Undo+Announce */ + /* partial support: see comment in 'unfavourite' */ + object_unadmire(id, snac.actor, 0); } else if (strcmp(op, "bookmark") == 0) { |