mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 21:35:04 +00:00
Also check inside Update messages in is_msg_for_me().
This commit is contained in:
parent
bad729c631
commit
ce0e782c94
1 changed files with 3 additions and 3 deletions
|
@ -465,8 +465,8 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if it's not a Create, allow */
|
/* if it's not a Create or Update, allow */
|
||||||
if (strcmp(type, "Create") != 0)
|
if (!xs_match(type, "Create|Update"))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
xs_dict *msg = xs_dict_get(c_msg, "object");
|
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)) {
|
if (user_open(&user, v)) {
|
||||||
xs *fn = xs_fmt("%s/queue/%s.json", user.basedir, ntid);
|
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)
|
if (link(tmpfn, fn) < 0)
|
||||||
srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn));
|
srv_log(xs_fmt("link(%s, %s) error", tmpfn, fn));
|
||||||
|
|
Loading…
Reference in a new issue