akkoma/lib/pleroma/web
Oneric 94e9c8f48a Purge unused media description update on post
In MastoAPI media descriptions are updated via the
media update API not upon post creation or post update.

This functionality was originally added about 6 years ago in
ba93396649 which was part of
https://git.pleroma.social/pleroma/pleroma/-/merge_requests/626 and
https://git.pleroma.social/pleroma/pleroma-fe/-/merge_requests/450.
They introduced image descriptions to the front- and backend,
but predate adoption of Mastodon API.

For a while adding an `descriptions` array on post creation might have
continued to work as an undocumented Pleroma extension to Masto API, but
at latest when OpenAPI specs were added for those endpoints four years
ago in 7803a85d2c, these codepaths ceased
to be used. The API specs don’t list a `descriptions` parameter and
any unknown parameters are stripped out.

The attachments_from_ids function is only called from
ScheduledActivity and ActivityDraft.create with the latter
only being called by CommonAPI.{post,update} whihc in turn
are only called from ScheduledActivity again, MastoAPI controller
and without any attachment or description parameter WelcomeMessage.
Therefore no codepath can contain a descriptions parameter.
2024-05-22 20:18:08 +02:00
..
activity_pub Normalise public adressing to fix federation 2024-04-25 18:45:16 +02:00
admin_api Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
akkoma_api
api_spec Accept body parameters for /api/pleroma/notification_settings 2024-04-09 04:11:28 +02:00
auth Support elixir1.15 2023-08-03 17:44:09 +01:00
common_api Purge unused media description update on post 2024-05-22 20:18:08 +02:00
fallback
federator
feed Don't strip newlines in the Atom feed 2024-03-11 12:50:14 +01:00
mailer
mastodon_api Merge pull request 'Return last_status_at as date, not datetime' (#681) from katafrakt/akkoma:fix-last-status-at into develop 2024-02-17 11:37:19 +00:00
media_proxy
metadata check if data is visible before embedding it in OG tags 2024-04-12 05:16:47 +01:00
mongoose_im
nodeinfo
o_auth update tests for oauth consumer 2023-12-17 21:48:19 +00:00
o_status Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
pleroma_api
plugs Format, but this time with a non-ancient version of elixir 2024-04-19 18:07:50 +02:00
preload/providers
push Support elixir1.15 2023-08-03 17:44:09 +01:00
rich_media Support elixir1.15 2023-08-03 17:44:09 +01:00
static_fe Fix Twitter metadata 2024-02-19 21:09:43 +00:00
templates Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
twitter_api Accept body parameters for /api/pleroma/notification_settings 2024-04-09 04:11:28 +02:00
utils
views Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
web_finger
api_spec.ex
common_api.ex Support elixir1.15 2023-08-03 17:44:09 +01:00
controller_helper.ex
embed_controller.ex
endpoint.ex Fix Content-Type of our schema 2024-03-18 22:33:10 -01:00
federator.ex
gettext.ex
instance_document.ex
manifest_controller.ex
masto_fe_controller.ex Migrate to phoenix 1.7 (#626) 2023-08-15 10:22:18 +00:00
media_proxy.ex Drop base_url special casing in test env 2024-04-07 00:20:12 +02:00
metadata.ex
o_auth.ex
pipelines.ex
plug.ex
preload.ex
push.ex Support elixir1.15 2023-08-03 17:44:09 +01:00
rel_me.ex
router.ex Keep READ endpoints, purge WRITE 2024-04-19 11:06:01 +01:00
streamer.ex
swagger.ex
telemetry.ex Formatting 2024-04-16 08:02:13 +02:00
translation_helpers.ex
uploader_controller.ex
web_finger.ex Add HTTP backoff cache to respect 429s 2024-04-26 19:00:35 +01:00
xml.ex make xmerl shut up about markup 2024-04-16 10:19:30 +01:00