snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 344356e4888a290a17836b1c809a124689007039
parent 76aa8649b5a6c41a925bb25057ea0177716e435a
Author: default <nobody@localhost>
Date:   Thu,  1 Jun 2023 10:37:12 +0200

Fixed notification bug.

Diffstat:
Mactivitypub.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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) {