]> cat aescling's git repositories - mastodon.git/commit
Make file attachment on MediaAttachment optional (#1865)
authorEugen <eugen@zeonfederated.com>
Sun, 16 Apr 2017 10:51:30 +0000 (12:51 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Apr 2017 10:51:30 +0000 (12:51 +0200)
commit5d710b1139b34f2ed6bd556f448fa7248354e758
tree958a5ff315699f13b4668f190c321291df06e29c
parent8a58942c80275788cbe069f2d67c396732ec092d
Make file attachment on MediaAttachment optional (#1865)

Create MediaAttachment but without actual file download when domain is blocked with reject_media set to true
Clean up old media files when creating a new domain block with reject_media set to true
Return remote_url in media attachments API if local file is not present
Undo domain block action in admin UI
Ability to enable reject_media from admin UI
14 files changed:
app/controllers/admin/domain_blocks_controller.rb
app/controllers/application_controller.rb
app/models/domain_block.rb
app/services/block_domain_service.rb
app/services/process_feed_service.rb
app/services/suspend_account_service.rb
app/services/unblock_domain_service.rb [new file with mode: 0644]
app/views/admin/domain_blocks/index.html.haml
app/views/admin/domain_blocks/new.html.haml
app/views/admin/domain_blocks/show.html.haml [new file with mode: 0644]
app/views/api/v1/statuses/_media.rabl
config/locales/en.yml
config/routes.rb
spec/views/stream_entries/show.html.haml_spec.rb