1f863f0a36
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 |
||
---|---|---|
.. | ||
activity_expiration_policy.ex | ||
anti_followbot_policy.ex | ||
anti_link_spam_policy.ex | ||
drop_policy.ex | ||
ensure_re_prepended.ex | ||
follow_bot_policy.ex | ||
force_bot_unlisted_policy.ex | ||
hashtag_policy.ex | ||
hellthread_policy.ex | ||
inline_quote_policy.ex | ||
keyword_policy.ex | ||
media_proxy_warming_policy.ex | ||
mention_policy.ex | ||
no_empty_policy.ex | ||
no_op_policy.ex | ||
no_placeholder_text_policy.ex | ||
normalize_markup.ex | ||
object_age_policy.ex | ||
pipeline_filtering.ex | ||
policy.ex | ||
reject_non_public.ex | ||
simple_policy.ex | ||
steal_emoji_policy.ex | ||
subchain_policy.ex | ||
tag_policy.ex | ||
user_allow_list_policy.ex | ||
vocabulary_policy.ex |