diff options
| author | 2023-06-01 10:45:06 +0200 | |
|---|---|---|
| committer | 2023-06-01 10:45:06 +0200 | |
| commit | e87d5b7e20f468b09efe8fbabe0bd5320cc2922b (patch) | |
| tree | b2015b2a74065d7aa1c6ba5434dd2765a7ff101b | |
| parent | Fixed notification bug. (diff) | |
| download | penes-snac2-e87d5b7e20f468b09efe8fbabe0bd5320cc2922b.tar.gz penes-snac2-e87d5b7e20f468b09efe8fbabe0bd5320cc2922b.tar.xz penes-snac2-e87d5b7e20f468b09efe8fbabe0bd5320cc2922b.zip | |
Another tweak in notify().
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index 79bc8a9..066a49d 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -511,9 +511,6 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, | |||
| 511 | 511 | ||
| 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 | ||
| 515 | if (objid == NULL) | ||
| 516 | objid = id; | ||
| 517 | 514 | ||
| 518 | if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) { | 515 | if (strcmp(type, "Like") == 0 || strcmp(type, "Announce") == 0) { |
| 519 | /* if it's not an admiration about something by us, done */ | 516 | /* if it's not an admiration about something by us, done */ |