distraction.party/lib/pleroma/web/activity_pub
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_pub Remove deps from Streaming/Persisting behaviors 2021-06-01 13:55:07 -05:00
mrf Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
object_validator Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
object_validators Purge Rejected Follow requests in daily task (#334) 2022-12-03 23:17:43 +00:00
side_effects Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
views User: generate private keys on user creation 2022-09-11 19:54:37 +01:00
activity_pub.ex Diagnostics tasks (#348) 2022-12-07 11:12:34 +00:00
activity_pub_controller.ex User: generate private keys on user creation 2022-09-11 19:54:37 +01:00
builder.ex Post editing (#202) 2022-09-06 19:24:02 +00:00
internal_fetch_actor.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mrf.ex normalise markup by default (#316) 2022-11-26 21:06:20 +00:00
object_validator.ex Post editing (#202) 2022-09-06 19:24:02 +00:00
pipeline.ex Refactor ES on top of search behaviour 2022-06-30 16:28:31 +01:00
publisher.ex Check that the signature matches the creator 2022-10-14 11:48:32 +01:00
relay.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
side_effects.ex Fixing up deletes a bit (#327) 2022-12-01 15:00:53 +00:00
transmogrifier.ex Post editing (#202) 2022-09-06 19:24:02 +00:00
utils.ex Allow reacting with remote emoji when they exist on the post (#200) 2022-09-04 23:31:41 +00:00
visibility.ex local-only-fixed (#138) 2022-08-02 14:46:46 +00:00