]> cat aescling's git repositories - mastodon.git/commit
Make PreviewCard records reuseable between statuses (#4642)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 1 Sep 2017 14:20:16 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2017 14:20:16 +0000 (16:20 +0200)
commit7dc5035031a697e7a2726fcd787fc9c294751027
treead2e2fe24ba604c07e4c329315efdf1479759cc8
parent2305f7c391325c7abf8746ebb2bb560c13df4437
Make PreviewCard records reuseable between statuses (#4642)

* Make PreviewCard records reuseable between statuses

**Warning!** Migration truncates preview_cards tablec

* Allow a wider thumbnail for link preview, display it in horizontal layout (#4648)

* Delete preview cards files before truncating

* Rename old table instead of truncating it

* Add mastodon:maintenance:remove_deprecated_preview_cards

* Ignore deprecated_preview_cards in schema definition

* Fix null behaviour
13 files changed:
app/controllers/api/v1/statuses_controller.rb
app/javascript/mastodon/features/status/components/card.js
app/javascript/styles/components.scss
app/models/media_attachment.rb
app/models/preview_card.rb
app/models/status.rb
app/services/fetch_link_card_service.rb
config/environment.rb
db/migrate/20170901141119_truncate_preview_cards.rb [new file with mode: 0644]
db/migrate/20170901142658_create_join_table_preview_cards_statuses.rb [new file with mode: 0644]
db/schema.rb
lib/tasks/mastodon.rake
spec/services/fetch_link_card_service_spec.rb