akkoma/test/pleroma/web/activity_pub
ilja 1f863f0a36
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
Fix MRF policies to also work with Update
Objects who got updated would just pass through several of the MRF policies, undoing moderation in some situations.
In the relevant cases we now check not only for Create activities, but also Update activities.

I checked which ones checked explicitly on type Create using `grep '"type" => "Create"' lib/pleroma/web/activity_pub/mrf/*`.

The following from that list have not been changed:
* lib/pleroma/web/activity_pub/mrf/follow_bot_policy.ex
    * Not relevant for moderation
* lib/pleroma/web/activity_pub/mrf/keyword_policy.ex
    * Already had a test for Update
* lib/pleroma/web/activity_pub/mrf/object_age_policy.ex
    * In practice only relevant when fetching old objects (e.g. through Like or Announce). These are always wrapped in a Create.
* lib/pleroma/web/activity_pub/mrf/reject_non_public.ex
    * We don't allow changing scope with Update, so not relevant here
2022-12-08 23:22:05 +01:00
..
mrf Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
object_validators Post editing (#202) 2022-09-06 19:24:02 +00:00
side_effects Change user.deactivated field to user.is_active 2021-01-15 11:24:46 -06:00
transmogrifier Resolve follow activity from accept/reject without ID (#328) 2022-12-02 11:12:37 +00:00
views User: generate private keys on user creation 2022-09-11 19:54:37 +01:00
activity_pub_controller_test.exs fix tests broken by relay defaults changing (#314) 2022-11-26 20:45:47 +00:00
activity_pub_test.exs Allow dashes in domain name search 2022-12-06 10:57:10 +00:00
builder_test.exs turn inlineQuotePolicy on by default 2022-09-05 17:22:33 +01:00
mrf_test.exs Add tests, changelog entry 2022-11-26 20:52:49 +00:00
pipeline_test.exs Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
publisher_test.exs remove unneeded function 2022-08-03 11:50:48 +01:00
relay_test.exs ObjectValidators.{Announce,EmojiReact,Like}: Fix context, actor & addressing 2021-06-09 04:23:02 +02:00
side_effects_test.exs Scrape instance nodeinfo (#251) 2022-11-06 22:49:39 +00:00
transmogrifier_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
utils_test.exs Don't persist local undone follow (#194) 2022-08-31 18:00:36 +00:00
visibility_test.exs mix format 2022-06-22 17:20:55 +01:00