summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-09-25 17:42:39 +0200
committerdefault <nobody@localhost>2022-09-25 17:42:39 +0200
commitbb70101feca64224759581d73404240bb4d35f5b (patch)
tree364f29f6616d166df53bbc10a8b9026ea55ff8e0 /activitypub.c
parentfe6440b36341d0d56ee082b2af00e2839ddc5711 (diff)
New function timeline_admire().
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index ba45395..07cf5d7 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -221,7 +221,16 @@ void process_message(snac *snac, char *msg, char *req)
if (strcmp(type, "Accept") == 0) {
}
else
- if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) {
+*/
+ if (strcmp(type, "Like") == 0) {
+ if (xs_type(object) == XSTYPE_STRING)
+ timeline_admire(snac, object, actor, 1);
+ else
+ snac_debug(snac, 2, xs_fmt("xs_type for 'Like' object not string"));
+ }
+ else
+/*
+ || strcmp(type, "Announce") == 0) {
}
else
if (strcmp(type, "Update") == 0) {