mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-26 06:53:37 +00:00
Added support for Update + Note on input.
This commit is contained in:
parent
a0459df6ea
commit
6a7007e381
1 changed files with 8 additions and 0 deletions
|
@ -933,6 +933,14 @@ int process_message(snac *snac, char *msg, char *req)
|
||||||
|
|
||||||
snac_log(snac, xs_fmt("updated actor %s", actor));
|
snac_log(snac, xs_fmt("updated actor %s", actor));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
if (strcmp(utype, "Note") == 0) {
|
||||||
|
char *id = xs_dict_get(object, "id");
|
||||||
|
|
||||||
|
object_add_ow(id, object);
|
||||||
|
|
||||||
|
snac_log(snac, xs_fmt("updated post %s", id));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype));
|
snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue