summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-01 10:37:12 +0200
committerdefault <nobody@localhost>2023-06-01 10:37:12 +0200
commit344356e4888a290a17836b1c809a124689007039 (patch)
tree82025dedbf5c9671b0a2f2fcc54bd7e23fd0078b
parent76aa8649b5a6c41a925bb25057ea0177716e435a (diff)
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,
if (xs_type(objid) == XSTYPE_DICT)
objid = xs_dict_get(objid, "id");
else
+ if (objid == NULL)
objid = id;
if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) {