diff options
| author | 2022-09-28 19:59:19 +0200 | |
|---|---|---|
| committer | 2022-09-28 19:59:19 +0200 | |
| commit | c38cc09e4c593f4c7a53df6e289e8b6af03bd9ca (patch) | |
| tree | 775b8f029f31195de4e02f54c5dae28c1d527350 /activitypub.c | |
| parent | Added the score for local posts. (diff) | |
| download | snac2-c38cc09e4c593f4c7a53df6e289e8b6af03bd9ca.tar.gz snac2-c38cc09e4c593f4c7a53df6e289e8b6af03bd9ca.tar.xz snac2-c38cc09e4c593f4c7a53df6e289e8b6af03bd9ca.zip | |
Process 'Undo' + 'Follow'.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 81bfa59..82bf028 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -591,11 +591,17 @@ void process_message(snac *snac, char *msg, char *req) | |||
| 591 | snac_log(snac, xs_fmt("New follower %s", actor)); | 591 | snac_log(snac, xs_fmt("New follower %s", actor)); |
| 592 | } | 592 | } |
| 593 | else | 593 | else |
| 594 | /* | ||
| 595 | if (strcmp(type, "Undo") == 0) { | 594 | if (strcmp(type, "Undo") == 0) { |
| 595 | if (strcmp(utype, "Follow") == 0) { | ||
| 596 | if (valid_status(follower_del(snac, actor))) | ||
| 597 | snac_log(snac, xs_fmt("no longer following us %s", actor)); | ||
| 598 | else | ||
| 599 | snac_log(snac, xs_fmt("error deleting follower %s", actor)); | ||
| 600 | } | ||
| 601 | else | ||
| 602 | snac_debug(snac, 1, xs_fmt("ignored 'Undo' for object type '%s'", utype)); | ||
| 596 | } | 603 | } |
| 597 | else | 604 | else |
| 598 | */ | ||
| 599 | if (strcmp(type, "Create") == 0) { | 605 | if (strcmp(type, "Create") == 0) { |
| 600 | if (strcmp(utype, "Note") == 0) { | 606 | if (strcmp(utype, "Note") == 0) { |
| 601 | if (is_muted(snac, actor)) | 607 | if (is_muted(snac, actor)) |