summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2024-01-18 22:21:05 +0100
committerGravatar default2024-01-18 22:21:05 +0100
commitf162c0779192a3ea19d6aecd692993723769e64e (patch)
tree937af08250331d284451f42b7a0f5a33d40d3f65 /activitypub.c
parentVersion 2.45 RELEASED. (diff)
downloadsnac2-f162c0779192a3ea19d6aecd692993723769e64e.tar.gz
snac2-f162c0779192a3ea19d6aecd692993723769e64e.tar.xz
snac2-f162c0779192a3ea19d6aecd692993723769e64e.zip
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)
1733 snac_log(snac, xs_fmt("new 'Question' %s %s", actor, id)); 1733 snac_log(snac, xs_fmt("new 'Question' %s %s", actor, id));
1734 } 1734 }
1735 else 1735 else
1736 if (strcmp(utype, "Video") == 0) { /** **/
1737 char *id = xs_dict_get(object, "id");
1738
1739 if (timeline_add(snac, id, object))
1740 snac_log(snac, xs_fmt("new 'Video' %s %s", actor, id));
1741 }
1742 else
1736 snac_debug(snac, 1, xs_fmt("ignored 'Create' for object type '%s'", utype)); 1743 snac_debug(snac, 1, xs_fmt("ignored 'Create' for object type '%s'", utype));
1737 } 1744 }
1738 else 1745 else