forked from AkkomaGang/akkoma
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 |
||
---|---|---|
.. | ||
mrf | ||
object_validators | ||
side_effects | ||
transmogrifier | ||
views | ||
activity_pub_controller_test.exs | ||
activity_pub_test.exs | ||
builder_test.exs | ||
mrf_test.exs | ||
pipeline_test.exs | ||
publisher_test.exs | ||
relay_test.exs | ||
side_effects_test.exs | ||
transmogrifier_test.exs | ||
utils_test.exs | ||
visibility_test.exs |