summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2024-04-11 05:12:13 +0200
committerGravatar default2024-04-11 05:12:13 +0200
commit877fb079f34f10c857c42cd04ffd0b5e0cd4ca69 (patch)
tree356ff30c1bacb5850fcdb11b31935258bbcc856b /activitypub.c
parentNew function msg_repulsion. (diff)
downloadsnac2-877fb079f34f10c857c42cd04ffd0b5e0cd4ca69.tar.gz
snac2-877fb079f34f10c857c42cd04ffd0b5e0cd4ca69.tar.xz
snac2-877fb079f34f10c857c42cd04ffd0b5e0cd4ca69.zip
mastoapi: 'unfavourite' and 'unreblog' actions now fully work.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index afbe7af..9a23e14 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1186,11 +1186,11 @@ xs_dict *msg_repulsion(snac *user, char *id, char *type)
1186 1186
1187 /* copy the 'to' field */ 1187 /* copy the 'to' field */
1188 msg = xs_dict_set(msg, "to", xs_dict_get(object, "to")); 1188 msg = xs_dict_set(msg, "to", xs_dict_get(object, "to"));
1189
1190 /* now we despise this */
1191 object_unadmire(id, user->actor, *type == 'L' ? 1 : 0);
1192 } 1189 }
1193 1190
1191 /* now we despise this */
1192 object_unadmire(id, user->actor, *type == 'L' ? 1 : 0);
1193
1194 return msg; 1194 return msg;
1195} 1195}
1196 1196