aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-09 18:37:12 +0100
committerdefault <nobody@localhost>2025-01-09 18:37:12 +0100
commit12fcc053b5bfd2c978ae6daf4a61922249b8e251 (patch)
treeb0c71724a87fbbaf1ffb5046faf09c4b6f44d5b5 /activitypub.c
parentc25360468c56286a50f52128f548bfd9e8cb7b6b (diff)
parent25b22d8a94ddfd3f281e0b0c3405bf7dd6e6feac (diff)
Merge branch 'master' of /home/angel/git/snac2
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index 9f7e9a6..81f7708 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -2137,14 +2137,14 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
snac_log(snac, xs_fmt("new 'Question' %s %s", actor, id));
}
else
- if (strcmp(utype, "Video") == 0) { /** **/
+ if (xs_match(utype, "Audio|Video|Event")) { /** **/
const char *id = xs_dict_get(object, "id");
if (xs_is_null(id))
snac_log(snac, xs_fmt("malformed message: no 'id' field"));
else
if (timeline_add(snac, id, object))
- snac_log(snac, xs_fmt("new 'Video' %s %s", actor, id));
+ snac_log(snac, xs_fmt("new '%s' %s %s", utype, actor, id));
}
else
snac_debug(snac, 1, xs_fmt("ignored 'Create' for object type '%s'", utype));
@@ -2252,7 +2252,7 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
snac_log(snac, xs_fmt("updated actor %s", actor));
}
else
- if (xs_match(utype, "Note|Page|Article|Video")) { /** **/
+ if (xs_match(utype, "Note|Page|Article|Video|Audio|Event")) { /** **/
const char *id = xs_dict_get(object, "id");
if (xs_is_null(id))