summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2024-07-30 22:21:46 +0200
committerGravatar default2024-07-30 22:21:46 +0200
commita09ea11f551969e2239cbf65293205da9cae37fe (patch)
treec08df4efd0dcc442ad6efc6a0c130d74bb457241 /activitypub.c
parentAdded initial support for the input message 'Move' (untested). (diff)
downloadsnac2-a09ea11f551969e2239cbf65293205da9cae37fe.tar.gz
snac2-a09ea11f551969e2239cbf65293205da9cae37fe.tar.xz
snac2-a09ea11f551969e2239cbf65293205da9cae37fe.zip
Archive bad Move messages.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 4ce88c5..9a16521 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -2194,8 +2194,10 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
2194 else 2194 else
2195 snac_log(snac, xs_fmt("'Move' error: actor %s is not being followed", old_account)); 2195 snac_log(snac, xs_fmt("'Move' error: actor %s is not being followed", old_account));
2196 } 2196 }
2197 else 2197 else {
2198 snac_log(snac, xs_fmt("'Move' error: malformed message from %s", actor)); 2198 snac_log(snac, xs_fmt("'Move' error: malformed message from %s", actor));
2199 srv_archive_error("move", "move", req, msg);
2200 }
2199 } 2201 }
2200 else { 2202 else {
2201 srv_archive_error("unsupported_type", "unsupported_type", req, msg); 2203 srv_archive_error("unsupported_type", "unsupported_type", req, msg);