summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-09-25 17:42:39 +0200
committerGravatar default2022-09-25 17:42:39 +0200
commitbb70101feca64224759581d73404240bb4d35f5b (patch)
tree364f29f6616d166df53bbc10a8b9026ea55ff8e0 /activitypub.c
parentSome log tweaks. (diff)
downloadsnac2-bb70101feca64224759581d73404240bb4d35f5b.tar.gz
snac2-bb70101feca64224759581d73404240bb4d35f5b.tar.xz
snac2-bb70101feca64224759581d73404240bb4d35f5b.zip
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)
221 if (strcmp(type, "Accept") == 0) { 221 if (strcmp(type, "Accept") == 0) {
222 } 222 }
223 else 223 else
224 if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) { 224*/
225 if (strcmp(type, "Like") == 0) {
226 if (xs_type(object) == XSTYPE_STRING)
227 timeline_admire(snac, object, actor, 1);
228 else
229 snac_debug(snac, 2, xs_fmt("xs_type for 'Like' object not string"));
230 }
231 else
232/*
233 || strcmp(type, "Announce") == 0) {
225 } 234 }
226 else 235 else
227 if (strcmp(type, "Update") == 0) { 236 if (strcmp(type, "Update") == 0) {