akkoma/test/pleroma/web/activity_pub/mrf
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
..
activity_expiration_policy_test.exs Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
anti_followbot_policy_test.exs Also use actor_type to determine if an account is a bot in antiFollowbotPolicy 2022-06-29 20:47:44 +01:00
anti_link_spam_policy_test.exs Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
ensure_re_prepended_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
follow_bot_policy_test.exs Fix function calls due to module name change 2021-03-30 11:10:44 -05:00
force_bot_unlisted_policy_test.exs Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
hashtag_policy_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
hellthread_policy_test.exs Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
inline_quote_policy_test.exs Quote posting (#113) 2022-07-25 16:30:06 +00:00
keyword_policy_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
media_proxy_warming_policy_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
mention_policy_test.exs Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
no_empty_policy_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
no_placeholder_text_policy_test.exs Post editing (#202) 2022-09-06 19:24:02 +00:00
normalize_markup_test.exs weirdly no, images should not have classes 2022-11-26 21:15:10 +00:00
object_age_policy_test.exs ObjectAgePolicy: Fix pattern matching on published 2021-08-10 07:41:06 +02:00
reject_non_public_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
simple_policy_test.exs Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
steal_emoji_policy_test.exs StealEmojiPolicy: fix String rejected_shortcodes 2022-06-29 20:47:45 +01:00
subchain_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
tag_policy_test.exs Fix tagpolicy to also work with Update 2022-12-08 21:53:42 +01:00
user_allow_list_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00
vocabulary_policy_test.exs Convert tests to all use clear_config instead of Pleroma.Config.put 2021-01-26 11:58:43 -06:00