diff options
| author | default <nobody@localhost> | 2025-01-09 09:10:21 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-01-09 09:10:21 +0100 |
| commit | 25b22d8a94ddfd3f281e0b0c3405bf7dd6e6feac (patch) | |
| tree | 9abf7a7f0587911cfd70339c6df6b13539aaf8aa /activitypub.c | |
| parent | 74cd356be8ba270c76202c7c55b5b07ab4bfd22c (diff) | |
Some fixes to receive and update 'Event' objects correctly.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index 24954e6..944dd69 100644 --- a/activitypub.c +++ b/activitypub.c @@ -2126,14 +2126,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)); @@ -2241,7 +2241,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)) |