From bb70101feca64224759581d73404240bb4d35f5b Mon Sep 17 00:00:00 2001 From: default Date: Sun, 25 Sep 2022 17:42:39 +0200 Subject: New function timeline_admire(). --- activitypub.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'activitypub.c') 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) { -- cgit v1.2.3