aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-18 22:21:05 +0100
committerdefault <nobody@localhost>2024-01-18 22:21:05 +0100
commitf162c0779192a3ea19d6aecd692993723769e64e (patch)
tree937af08250331d284451f42b7a0f5a33d40d3f65 /activitypub.c
parent02998ebb59fed4ab3733170e5dc72344513deb5e (diff)
Added some support for Peertube videos.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 9928c76..2306eb5 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1733,6 +1733,13 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
snac_log(snac, xs_fmt("new 'Question' %s %s", actor, id));
}
else
+ if (strcmp(utype, "Video") == 0) { /** **/
+ char *id = xs_dict_get(object, "id");
+
+ if (timeline_add(snac, id, object))
+ snac_log(snac, xs_fmt("new 'Video' %s %s", actor, id));
+ }
+ else
snac_debug(snac, 1, xs_fmt("ignored 'Create' for object type '%s'", utype));
}
else