diff options
| author | 2023-12-17 16:39:25 +0100 | |
|---|---|---|
| committer | 2023-12-17 16:39:25 +0100 | |
| commit | 9b18d7b377630e919aa1e720961ed96eb11422b6 (patch) | |
| tree | b34eb897f25b7bec14ce67ddadb70272a9c47afb | |
| parent | Even more is_msg_for_me() updates. (diff) | |
| download | snac2-9b18d7b377630e919aa1e720961ed96eb11422b6.tar.gz snac2-9b18d7b377630e919aa1e720961ed96eb11422b6.tar.xz snac2-9b18d7b377630e919aa1e720961ed96eb11422b6.zip | |
Even more is_msg_for_me() tweaks.
| -rw-r--r-- | activitypub.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activitypub.c b/activitypub.c index 07d0c17..77a496f 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -468,17 +468,17 @@ int is_msg_for_me(snac *snac, const xs_dict *c_msg) | |||
| 468 | return following_check(snac, actor); | 468 | return following_check(snac, actor); |
| 469 | } | 469 | } |
| 470 | 470 | ||
| 471 | /* if it's an Undo or an Update, it must be from someone we follow */ | 471 | /* if it's an Undo, it must be from someone we follow */ |
| 472 | if (xs_match(type, "Undo|Update")) { | 472 | if (xs_match(type, "Undo")) { |
| 473 | return following_check(snac, actor); | 473 | return following_check(snac, actor); |
| 474 | } | 474 | } |
| 475 | 475 | ||
| 476 | /* if it's not a Create, allow as is */ | 476 | /* if it's not a Create or Update, allow as is */ |
| 477 | if (!xs_match(type, "Create")) { | 477 | if (!xs_match(type, "Create|Update")) { |
| 478 | return 1; | 478 | return 1; |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | /* if we follow the Creator of this post, allow */ | 481 | /* if we follow the actor of this post, allow */ |
| 482 | if (following_check(snac, actor)) | 482 | if (following_check(snac, actor)) |
| 483 | return 1; | 483 | return 1; |
| 484 | 484 | ||