diff options
Diffstat (limited to 'activitypub.c')
| -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) { |