commit ce0e782

default  ·  2023-12-06 18:59:59 +0000 UTC
parent bad729c
Also check inside Update messages in is_msg_for_me().
1 files changed,  +3, -3
+3, -3
 1@@ -465,8 +465,8 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
 2             return 0;
 3     }
 4 
 5-    /* if it's not a Create, allow */
 6-    if (strcmp(type, "Create") != 0)
 7+    /* if it's not a Create or Update, allow */
 8+    if (!xs_match(type, "Create|Update"))
 9         return 1;
10 
11     xs_dict *msg = xs_dict_get(c_msg, "object");
12@@ -2055,7 +2055,7 @@ void process_queue_item(xs_dict *q_item)
13             if (user_open(&user, v)) {
14                 xs *fn = xs_fmt("%s/queue/%s.json", user.basedir, ntid);
15 
16-                srv_debug(1, xs_fmt("enqueue_input (from shared inbox) %s", fn));
17+                snac_debug(&user, 1, xs_fmt("enqueue_input (from shared inbox) %s", fn));
18 
19                 if (link(tmpfn, fn) < 0)
20                     srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn));