akkoma/lib/pleroma/web
ilja 1f863f0a36
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
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 Fix MRF policies to also work with Update 2022-12-08 23:22:05 +01:00
admin_api backend-i18n (#121) 2022-07-27 21:56:59 +00:00
akkoma_api/controllers Add enabled check on /translation/languages 2022-11-06 22:55:26 +00:00
api_spec Remerge of hashtag following (#341) 2022-12-05 12:58:48 +00:00
auth Fix LDAP user registration (#229) 2022-11-01 14:17:55 +00:00
common_api Post editing (#202) 2022-09-06 19:24:02 +00:00
fallback Add configurable theme color (#53) 2022-07-06 20:00:43 +00:00
federator Remove debug prints 2022-06-25 18:43:19 +01:00
feed maintenance: dependency upgrade (#81) 2022-07-18 00:56:35 +00:00
mailer Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
mastodon_api Remerge of hashtag following (#341) 2022-12-05 12:58:48 +00:00
media_proxy Use uppercase HTTP HEAD method for media preview proxy request (#128) 2022-07-30 21:58:14 +00:00
metadata Metadata/Utils: use summary as description if set 2022-09-11 19:55:38 +01:00
mongoose_im Change user.deactivated field to user.is_active 2021-01-15 11:24:46 -06:00
nodeinfo expose bubble instances via nodeinfo (#136) 2022-08-02 09:11:22 +00:00
o_auth Disconnect streaming sessions when token is revoked 2022-08-27 19:07:48 +01:00
o_status check for local_public? on AP route 2022-06-22 16:35:12 +01:00
pleroma_api Make backups require its own scope (#218) 2022-09-19 17:31:35 +00:00
plugs Redirect to standard FE if logged in 2022-12-07 13:35:00 +00:00
preload/providers Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
push Push.Impl: support edits 2022-10-28 01:20:19 -04:00
rich_media remove all endpoints marked as deprecated (#91) 2022-07-20 12:00:58 +00:00
static_fe Redirect to standard FE if logged in 2022-12-07 13:35:00 +00:00
templates Add check for null reply_to_user 2022-12-07 13:41:12 +00:00
twitter_api Remote interaction with posts (#198) 2022-09-08 10:19:22 +00:00
utils Pleroma.Web.Params --> Pleroma.Web.Utils.Params 2021-06-08 12:50:47 -05:00
views GOOGLE 2022-12-07 11:41:24 +00:00
web_finger Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
api_spec.ex purge chat and shout endpoints 2022-07-21 11:29:28 +01:00
common_api.ex Post editing (#202) 2022-09-06 19:24:02 +00:00
controller_helper.ex Pleroma.Web.Params --> Pleroma.Web.Utils.Params 2021-06-08 12:50:47 -05:00
embed_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
endpoint.ex Remove instrumentors (#98) 2022-07-21 11:32:17 +00:00
federator.ex and i yoink (#275) 2022-11-14 15:07:26 +00:00
gettext.ex Fix incorrect fallback when English is set to first language 2022-06-29 20:47:10 +01:00
instance_document.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
manifest_controller.ex Expose /manifest.json for PWA 2021-11-24 17:50:55 -06:00
masto_fe_controller.ex API compatibility with fedibird, frontend config (#163) 2022-08-17 00:22:59 +00:00
media_proxy.ex media_proxy: switch from :crypto.hmac to :crypto.mac 2021-06-03 19:11:15 +02:00
metadata.ex Add configurable theme color (#53) 2022-07-06 20:00:43 +00:00
o_auth.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
pipelines.ex Remove precompiled javascript (#55) 2022-07-08 13:03:18 +00:00
plug.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
preload.ex Remove unused Logger 2021-09-01 14:56:48 -05:00
push.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
rel_me.ex Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00
router.ex Redirect to standard FE if logged in 2022-12-07 13:35:00 +00:00
streamer.ex Remerge of hashtag following (#341) 2022-12-05 12:58:48 +00:00
swagger.ex remove anonymous function from plug 2022-07-14 11:17:14 +01:00
translation_helpers.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
uploader_controller.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
web_finger.ex User: generate private keys on user creation 2022-09-11 19:54:37 +01:00
xml.ex respect content-type header in finger request 2021-03-19 18:53:55 +03:00