mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Also accept Update activities for Page and Article.
This commit is contained in:
parent
4d4852b651
commit
2edbb75a18
1 changed files with 4 additions and 2 deletions
|
@ -1648,14 +1648,16 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcmp(type, "Update") == 0) { /** **/
|
if (strcmp(type, "Update") == 0) { /** **/
|
||||||
if (strcmp(utype, "Person") == 0 || strcmp(utype, "Service") == 0) {
|
if (strcmp(utype, "Person") == 0 || strcmp(utype, "Service") == 0) { /** **/
|
||||||
actor_add(actor, xs_dict_get(msg, "object"));
|
actor_add(actor, xs_dict_get(msg, "object"));
|
||||||
timeline_touch(snac);
|
timeline_touch(snac);
|
||||||
|
|
||||||
snac_log(snac, xs_fmt("updated actor %s", actor));
|
snac_log(snac, xs_fmt("updated actor %s", actor));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcmp(utype, "Note") == 0) { /** **/
|
if (strcmp(utype, "Note") == 0 || /** **/
|
||||||
|
strcmp(utype, "Page") == 0 || /** **/
|
||||||
|
strcmp(utype, "Article") == 0) { /** **/
|
||||||
const char *id = xs_dict_get(object, "id");
|
const char *id = xs_dict_get(object, "id");
|
||||||
|
|
||||||
object_add_ow(id, object);
|
object_add_ow(id, object);
|
||||||
|
|
Loading…
Reference in a new issue