distraction.party/test
ilja 1f863f0a36 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
..
config remove default emoji file 2022-08-11 19:05:41 +01:00
credo/check/consistency Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
fixtures microblogpub federation fixes (#288) 2022-11-18 11:14:35 +00:00
instance_static support for special chars in pack name 2020-09-24 09:12:37 +03:00
mix Don't persist local undone follow (#194) 2022-08-31 18:00:36 +00:00
pleroma Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
support Remerge of hashtag following (#341) 2022-12-05 12:58:48 +00:00
test_helper.exs Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00