diff options
| author | 2023-06-01 10:37:12 +0200 | |
|---|---|---|
| committer | 2023-06-01 10:37:12 +0200 | |
| commit | 344356e4888a290a17836b1c809a124689007039 (patch) | |
| tree | 82025dedbf5c9671b0a2f2fcc54bd7e23fd0078b | |
| parent | Fixed another CSS typo. (diff) | |
| download | snac2-344356e4888a290a17836b1c809a124689007039.tar.gz snac2-344356e4888a290a17836b1c809a124689007039.tar.xz snac2-344356e4888a290a17836b1c809a124689007039.zip | |
Fixed notification bug.
| -rw-r--r-- | activitypub.c | 1 |
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) { |