Oneric
932810c35e
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending approval
ci/woodpecker/pr/build-arm64 Pipeline is pending approval
ci/woodpecker/pr/docs Pipeline is pending approval
ci/woodpecker/pr/lint Pipeline is pending approval
ci/woodpecker/pr/test Pipeline is pending approval
Current logic unconditionally adds public adressing to "cc"
and follower adressing to "to" after attempting to strip it
from the other one. This creates serious problems:
First the bug prompting this investigation and fix,
unconditional addition creates duplicates when adressing
URIs already were in their intended final field; e.g.
this is prominently the case for all "unlisted" posts.
Since List.delete only removes the first occurence,
this then broke follower-adress stripping later on
making the policy ineffective.
It’s also just not safe in general wrt to non-public adressing:
e.g. pre-existing duplicates didn’t get fully stripped,
bespoke adressing modes with only one of public addressing
or follower addressing are mangled — and most importantly:
any belatedly received DM or follower-only post
also got public adressing added!
Shockingly this last point was actually asserted as "correct" in tests;
it appears to be a mistake from mindless match adjustments
while fixing crashes on nil adressing in
|
||
---|---|---|
.. | ||
activity_pub | ||
admin_api | ||
akkoma_api | ||
api_spec | ||
auth | ||
common_api | ||
fallback | ||
federator | ||
feed | ||
mailer | ||
mastodon_api | ||
media_proxy | ||
metadata | ||
mongoose_im | ||
nodeinfo | ||
o_auth | ||
o_status | ||
pleroma_api | ||
plugs | ||
preload/providers | ||
push | ||
rich_media | ||
static_fe | ||
templates | ||
twitter_api | ||
utils | ||
views | ||
web_finger | ||
api_spec.ex | ||
common_api.ex | ||
controller_helper.ex | ||
embed_controller.ex | ||
endpoint.ex | ||
federator.ex | ||
gettext.ex | ||
instance_document.ex | ||
manifest_controller.ex | ||
masto_fe_controller.ex | ||
media_proxy.ex | ||
metadata.ex | ||
o_auth.ex | ||
pipelines.ex | ||
plug.ex | ||
preload.ex | ||
push.ex | ||
rel_me.ex | ||
router.ex | ||
streamer.ex | ||
swagger.ex | ||
telemetry.ex | ||
translation_helpers.ex | ||
uploader_controller.ex | ||
web_finger.ex | ||
xml.ex |