This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/services
Patrick Figel 197af5de70 Set unknown attachment type when adding domain blocks (#2605)
Follow-up to #2599. When a domain block with `reject_media` is
added or `rake mastodon:media:remove_remote` is invoked, mastodon
deletes the locally cached attachments and avatars but does not
reflect that change in the database, causing the `file` fields to
still have values. This change persists the deletion in the
database and sets the attachment type to unknown.

This also introduces a one-off rake task that sets all attachments
without a local file to the "unknown" type. The upgrade notes for
the next release should contain a post-upgrade step with
`rake mastodon:media:set_unknown`.
2017-04-29 02:44:03 +02:00
..
concerns
pubsubhubbub Punycode URI normalization (#2370) 2017-04-25 02:47:31 +02:00
account_search_service.rb Optimize account search (#2421) 2017-04-25 04:44:43 +02:00
after_block_service.rb
authorize_follow_service.rb
base_service.rb
block_domain_service.rb Set unknown attachment type when adding domain blocks (#2605) 2017-04-29 02:44:03 +02:00
block_service.rb
fan_out_on_write_service.rb
favourite_service.rb
fetch_atom_service.rb OEmbed support for PreviewCard (#2337) 2017-04-27 14:42:22 +02:00
fetch_link_card_service.rb OEmbed support for PreviewCard (#2337) 2017-04-27 14:42:22 +02:00
fetch_remote_account_service.rb Punycode URI normalization (#2370) 2017-04-25 02:47:31 +02:00
fetch_remote_resource_service.rb
fetch_remote_status_service.rb Improve shared status verification (#2525) 2017-04-27 17:06:47 +02:00
follow_remote_account_service.rb OEmbed support for PreviewCard (#2337) 2017-04-27 14:42:22 +02:00
follow_service.rb
mute_service.rb
notify_service.rb
post_status_service.rb OEmbed support for PreviewCard (#2337) 2017-04-27 14:42:22 +02:00
precompute_feed_service.rb
process_feed_service.rb Improve shared status verification (#2525) 2017-04-27 17:06:47 +02:00
process_hashtags_service.rb
process_interaction_service.rb Punycode URI normalization (#2370) 2017-04-25 02:47:31 +02:00
process_mentions_service.rb
reblog_service.rb
reject_follow_service.rb
remove_status_service.rb
search_service.rb
send_interaction_service.rb
subscribe_service.rb
suspend_account_service.rb
unblock_domain_service.rb
unblock_service.rb
unfavourite_service.rb
unfollow_service.rb
unmute_service.rb
unsubscribe_service.rb
update_remote_profile_service.rb
warm_cache_service.rb