diff options
| author | 2023-12-15 11:08:10 +0100 | |
|---|---|---|
| committer | 2023-12-15 11:08:10 +0100 | |
| commit | e9f391ed869bb59c782c1bcfb4beba34b8b70bde (patch) | |
| tree | 7c04861848490dc58688d3635b6e995c8141e7b1 | |
| parent | Merge pull request 'html.c: media: disable preloading' (#87) from Yonle/snac2... (diff) | |
| download | snac2-e9f391ed869bb59c782c1bcfb4beba34b8b70bde.tar.gz snac2-e9f391ed869bb59c782c1bcfb4beba34b8b70bde.tar.xz snac2-e9f391ed869bb59c782c1bcfb4beba34b8b70bde.zip | |
Added a special check for Undo + Follow.
| -rw-r--r-- | activitypub.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activitypub.c b/activitypub.c index 69f47e0..80b8a22 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1588,6 +1588,9 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req) | |||
| 1588 | } | 1588 | } |
| 1589 | else | 1589 | else |
| 1590 | if (strcmp(type, "Undo") == 0) { /** **/ | 1590 | if (strcmp(type, "Undo") == 0) { /** **/ |
| 1591 | if (xs_type(object) != XSTYPE_DICT) | ||
| 1592 | utype = "Follow"; | ||
| 1593 | |||
| 1591 | if (strcmp(utype, "Follow") == 0) { /** **/ | 1594 | if (strcmp(utype, "Follow") == 0) { /** **/ |
| 1592 | if (valid_status(follower_del(snac, actor))) { | 1595 | if (valid_status(follower_del(snac, actor))) { |
| 1593 | snac_log(snac, xs_fmt("no longer following us %s", actor)); | 1596 | snac_log(snac, xs_fmt("no longer following us %s", actor)); |