mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Drop updates for unknown posts.
This commit is contained in:
parent
22cc5f42a5
commit
759042dc9f
1 changed files with 7 additions and 3 deletions
|
@ -1692,11 +1692,15 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
||||||
if (xs_match(utype, "Note|Page|Article")) { /** **/
|
if (xs_match(utype, "Note|Page|Article")) { /** **/
|
||||||
const char *id = xs_dict_get(object, "id");
|
const char *id = xs_dict_get(object, "id");
|
||||||
|
|
||||||
|
if (object_here(id)) {
|
||||||
object_add_ow(id, object);
|
object_add_ow(id, object);
|
||||||
timeline_touch(snac);
|
timeline_touch(snac);
|
||||||
|
|
||||||
snac_log(snac, xs_fmt("updated post %s", id));
|
snac_log(snac, xs_fmt("updated post %s", id));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
snac_log(snac, xs_fmt("dropped update for unknown post %s", id));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if (strcmp(utype, "Question") == 0) { /** **/
|
if (strcmp(utype, "Question") == 0) { /** **/
|
||||||
const char *id = xs_dict_get(object, "id");
|
const char *id = xs_dict_get(object, "id");
|
||||||
|
|
Loading…
Reference in a new issue