diff options
| author | 2024-07-31 06:22:13 +0200 | |
|---|---|---|
| committer | 2024-07-31 06:22:13 +0200 | |
| commit | 1001744ddb48ed3cb49d1d6d1a607852d6d385de (patch) | |
| tree | 9d28c3b2abe8bf2264531d1f8526ff8bab35e74b /activitypub.c | |
| parent | Archive bad Move messages. (diff) | |
| download | snac2-1001744ddb48ed3cb49d1d6d1a607852d6d385de.tar.gz snac2-1001744ddb48ed3cb49d1d6d1a607852d6d385de.tar.xz snac2-1001744ddb48ed3cb49d1d6d1a607852d6d385de.zip | |
Notify objects include the original message.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index 9a16521..36624a1 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -949,7 +949,7 @@ void notify(snac *snac, const char *type, const char *utype, const char *actor, | |||
| 949 | if (strcmp(utype, "Follow") == 0) | 949 | if (strcmp(utype, "Follow") == 0) |
| 950 | objid = actor; | 950 | objid = actor; |
| 951 | 951 | ||
| 952 | notify_add(snac, type, utype, actor, objid != NULL ? objid : id); | 952 | notify_add(snac, type, utype, actor, objid != NULL ? objid : id, msg); |
| 953 | } | 953 | } |
| 954 | 954 | ||
| 955 | /** messages **/ | 955 | /** messages **/ |
| @@ -2180,6 +2180,8 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req) | |||
| 2180 | 2180 | ||
| 2181 | snac_log(snac, xs_fmt("'Move': unfollowing %s", old_account)); | 2181 | snac_log(snac, xs_fmt("'Move': unfollowing %s", old_account)); |
| 2182 | } | 2182 | } |
| 2183 | |||
| 2184 | do_notify = 1; | ||
| 2183 | } | 2185 | } |
| 2184 | else | 2186 | else |
| 2185 | snac_log(snac, xs_fmt("'Move' error: old actor %s not found in %s 'alsoKnownAs'", | 2187 | snac_log(snac, xs_fmt("'Move' error: old actor %s not found in %s 'alsoKnownAs'", |