summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-06-01 10:37:12 +0200
committerGravatar default2023-06-01 10:37:12 +0200
commit344356e4888a290a17836b1c809a124689007039 (patch)
tree82025dedbf5c9671b0a2f2fcc54bd7e23fd0078b
parentFixed another CSS typo. (diff)
downloadsnac2-344356e4888a290a17836b1c809a124689007039.tar.gz
snac2-344356e4888a290a17836b1c809a124689007039.tar.xz
snac2-344356e4888a290a17836b1c809a124689007039.zip
Fixed notification bug.
-rw-r--r--activitypub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c
index 4240486..79bc8a9 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -512,6 +512,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor,
512 if (xs_type(objid) == XSTYPE_DICT) 512 if (xs_type(objid) == XSTYPE_DICT)
513 objid = xs_dict_get(objid, "id"); 513 objid = xs_dict_get(objid, "id");
514 else 514 else
515 if (objid == NULL)
515 objid = id; 516 objid = id;
516 517
517 if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) { 518 if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) {