summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-12-06 19:59:59 +0100
committerdefault <nobody@localhost>2023-12-06 19:59:59 +0100
commitce0e782c946b9ac9d2a875ad0f15bebd3ba5c5b6 (patch)
tree25f2b75f144e9d4f3f61b767d4953f28ef091141 /activitypub.c
parentbad729c631819db04191605a237c8fa632818dd8 (diff)
Also check inside Update messages in is_msg_for_me().
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 92a1026..c57458f 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -465,8 +465,8 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
return 0;
}
- /* if it's not a Create, allow */
- if (strcmp(type, "Create") != 0)
+ /* if it's not a Create or Update, allow */
+ if (!xs_match(type, "Create|Update"))
return 1;
xs_dict *msg = xs_dict_get(c_msg, "object");
@@ -2055,7 +2055,7 @@ void process_queue_item(xs_dict *q_item)
if (user_open(&user, v)) {
xs *fn = xs_fmt("%s/queue/%s.json", user.basedir, ntid);
- srv_debug(1, xs_fmt("enqueue_input (from shared inbox) %s", fn));
+ snac_debug(&user, 1, xs_fmt("enqueue_input (from shared inbox) %s", fn));
if (link(tmpfn, fn) < 0)
srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn));