diff options
author | default <nobody@localhost> | 2023-03-07 10:04:13 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-03-07 10:04:13 +0100 |
commit | 35995d03bec702f41f080e46214f87eb6af368ad (patch) | |
tree | a714287f278dc0af7760cb6bb0f15b8e560f9797 /activitypub.c | |
parent | 2250ad702723a50afd93def3735fcfe854701aa3 (diff) |
Reject messages not for me.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index dc0afcd..66ca900 100644 --- a/activitypub.c +++ b/activitypub.c @@ -942,11 +942,10 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) utype = "(null)"; /* reject messages that are not for this user */ - int d = is_msg_for_me(snac, msg); - snac_debug(snac, 0, xs_fmt("---> %s %d", xs_dict_get(msg, "id"), d)); - - if (!d) { + if (!is_msg_for_me(snac, msg)) { snac_debug(snac, 0, xs_fmt("message from %s not for us", actor)); + + return 1; } /* bring the actor */ |