1
0
Fork 0
forked from fedi/mastodon
mastodon/db/migrate
Eugen Rochko d0dd9eb5b5 Feature conversations muting (#3017)
* Add <ostatus:conversation /> tag to Atom input/output

Only uses ref attribute (not href) because href would be
the alternate link that's always included also.

Creates new conversation for every non-reply status. Carries
over conversation for every reply. Keeps remote URIs verbatim,
generates local URIs on the fly like the rest of them.

* Conversation muting - prevents notifications that reference a conversation
(including replies, favourites, reblogs) from being created. API endpoints
/api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute

Currently no way to tell when a status/conversation is muted, so the web UI
only has a "disable notifications" button, doesn't work as a toggle

* Display "Dismiss notifications" on all statuses in notifications column, not just own

* Add "muted" as a boolean attribute on statuses JSON

For now always false on contained reblogs, since it's only relevant for
statuses returned from the notifications endpoint, which are not nested

Remove "Disable notifications" from detailed status view, since it's
only relevant in the notifications column

* Up max class length

* Remove pending test for conversation mute

* Add tests, clean up

* Rename to "mute conversation" and "unmute conversation"

* Raise validation error when trying to mute/unmute status without conversation
2017-05-15 03:04:13 +02:00
..
20160220174730_create_accounts.rb Initial commit 2016-02-20 22:53:20 +01:00
20160220211917_create_statuses.rb Initial commit 2016-02-20 22:53:20 +01:00
20160221003140_create_users.rb Made some progress 2016-02-22 16:00:20 +01:00
20160221003621_create_follows.rb Made some progress 2016-02-22 16:00:20 +01:00
20160222122600_create_stream_entries.rb Made some progress 2016-02-22 16:00:20 +01:00
20160222143943_add_profile_fields_to_accounts.rb Made some progress 2016-02-22 16:00:20 +01:00
20160223162837_add_metadata_to_statuses.rb Adding reblogs, favourites, improving atom generation 2016-02-23 19:17:37 +01:00
20160223164502_make_uris_nullable_in_statuses.rb Adding reblogs, favourites, improving atom generation 2016-02-23 19:17:37 +01:00
20160223165723_add_url_to_statuses.rb Adding reblogs, favourites, improving atom generation 2016-02-23 19:17:37 +01:00
20160223165855_add_url_to_accounts.rb Adding reblogs, favourites, improving atom generation 2016-02-23 19:17:37 +01:00
20160223171800_create_favourites.rb Adding reblogs, favourites, improving atom generation 2016-02-23 19:17:37 +01:00
20160224223247_create_mentions.rb Adding a Mention model, test stubs 2016-02-25 00:17:01 +01:00
20160227230233_add_attachment_avatar_to_accounts.rb Adding paperclip for avatars, fixing design of the public pages 2016-02-28 00:02:59 +01:00
20160305115639_add_devise_to_users.rb Removing grape and adding devise 2016-03-05 13:12:24 +01:00
20160306172223_create_doorkeeper_tables.rb Customizing doorkeeper views for authorizing app 2016-03-11 01:58:55 +01:00
20160312193225_add_attachment_header_to_accounts.rb Adding simple_form, adding profile settings, header image 2016-03-12 20:47:22 +01:00
20160314164231_add_owner_to_application.rb Bind oauth applications to users 2016-03-14 17:49:13 +01:00
20160316103650_add_missing_indices.rb Adding CSS for form errors, adding missing indices 2016-03-16 11:46:25 +01:00
20160322193748_add_avatar_remote_url_to_accounts.rb Only re-download avatar if URL changed (fix #19) 2016-03-22 21:05:23 +01:00
20160325130944_add_admin_to_users.rb Fixing FanOutOnWriteService, fixing Sidekiq not having enough DB connections 2016-03-25 14:12:24 +01:00
20160826155805_add_superapp_to_oauth_applications.rb The frontend will now be an OAuth app, auto-authorized. The frontend will use an access token for API requests 2016-08-26 19:12:19 +02:00
20160905150353_create_media_attachments.rb Add API to upload media attachments 2016-09-05 17:46:36 +02:00
20160919221059_add_subscription_expires_at_to_accounts.rb Separate PuSH subscriptions from following, add mastodon:push:refresh task, 2016-09-20 00:43:36 +02:00
20160920003904_remove_verify_token_from_accounts.rb Upgrade to PubSubHubbub 0.4 (removing verify_token) 2016-09-20 02:43:20 +02:00
20160926213048_remove_owner_from_application.rb Replace logo, fix #57 - delete/unreblog/unfavourite API, fix #45 - app 2016-09-26 23:56:53 +02:00
20161003142332_add_confirmable_to_users.rb Adding e-mail confirmations 2016-10-03 16:51:00 +02:00
20161003145426_create_blocks.rb Adding a block model and filter mentions from blocked users (fix #60) 2016-10-03 17:12:13 +02:00
20161006213403_rails_settings_migration.rb Adding user settings (model and mailer), no form yet 2016-10-07 13:17:56 +02:00
20161009120834_create_domain_blocks.rb Adding domain blocks 2016-10-09 14:48:59 +02:00
20161027172456_add_silenced_to_accounts.rb Adding public timeline silencing 2016-10-27 19:33:04 +02:00
20161104173623_create_tags.rb Adding hashtag model 2016-11-04 19:12:59 +01:00
20161105130633_create_statuses_tags_join_table.rb Adding hashtags 2016-11-05 17:13:14 +01:00
20161116162355_add_locale_to_users.rb Add user locale setting 2016-11-16 17:56:31 +01:00
20161119211120_create_notifications.rb Adding notifications column 2016-11-20 19:39:58 +01:00
20161122163057_remove_unneeded_indexes.rb Remove unneeded indices, improve error handling in background workers, don't needlessly reload reblogged status, send Devise e-mails asynchronously 2016-11-22 17:32:51 +01:00
20161123093447_add_sensitive_to_statuses.rb Adding sensitive marker to statuses in API 2016-11-23 10:46:48 +01:00
20161128103007_create_subscriptions.rb Adding embedded PuSH server 2016-11-28 13:36:47 +01:00
20161130142058_add_last_successful_delivery_at_to_subscriptions.rb Track successful PuSH deliveries 2016-11-30 15:24:57 +01:00
20161130185319_add_visibility_to_statuses.rb Per-status control for unlisted mode, also federation for unlisted mode 2016-11-30 21:34:59 +01:00
20161202132159_add_in_reply_to_account_id_to_statuses.rb Make data migration more merciful 2016-12-02 15:09:44 +01:00
20161203164520_add_from_account_id_to_notifications.rb Keep timelines in the UI trimmed when possible 2016-12-03 21:04:57 +01:00
20161205214545_add_suspended_to_accounts.rb Add account suspension 2016-12-05 22:59:30 +01:00
20161221152630_add_hidden_to_stream_entries.rb Private visibility on statuses prevents non-followers from seeing those 2016-12-21 20:04:13 +01:00
20161222201034_add_locked_to_accounts.rb Add "locked" flag to accounts, prevent blocked users from following, force-unfollow blocked users 2016-12-22 21:34:19 +01:00
20161222204147_create_follow_requests.rb Follow call on locked account creates follow request instead 2016-12-22 23:03:57 +01:00
20170105224407_add_shortcode_to_media_attachments.rb Fix #416 - Generate random unique 14-byte (19 characters) shortcodes 2017-01-06 00:29:12 +01:00
20170109120109_create_web_settings.rb Persist UI settings, add missing localizations for German 2017-01-09 14:00:55 +01:00
20170112154826_migrate_settings.rb Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings 2017-01-12 20:46:24 +01:00
20170114194937_add_application_to_statuses.rb Add tracking of OAuth app that posted a status, extend OAuth apps to have optional website field, add application details to API, show application name and website on detailed status views. Resolves #11 2017-01-15 08:58:50 +11:00
20170114203041_add_website_to_oauth_application.rb Add tracking of OAuth app that posted a status, extend OAuth apps to have optional website field, add application details to API, show application name and website on detailed status views. Resolves #11 2017-01-15 08:58:50 +11:00
20170119214911_create_preview_cards.rb Fix #463 - Fetch and display previews of URLs using OpenGraph tags 2017-01-20 01:00:14 +01:00
20170123162658_add_severity_to_domain_blocks.rb Domain blocks now have varying severity - auto-suspend vs auto-silence 2017-01-23 17:38:38 +01:00
20170123203248_add_reject_media_to_domain_blocks.rb Optional domain block attribute that prevents media attachments from being downloaded 2017-01-23 21:36:08 +01:00
20170125145934_add_spoiler_text_to_statuses.rb Fix spoiler_text not having "not null" constraint 2017-01-25 15:24:19 +01:00
20170127165745_add_devise_two_factor_to_users.rb Added optional two-factor authentication 2017-01-27 20:35:16 +01:00
20170129000348_create_devices.rb API for apps to register for push notifications 2017-01-29 01:30:32 +01:00
20170205175257_remove_devices.rb Fix #61 - Add list of blocked users to the UI; clean up failed push notifications API 2017-02-05 19:18:11 +01:00
20170209184350_add_reply_to_statuses.rb Fix #614 - extra reply-boolean on statuses to account for cases when replied-to 2017-02-09 20:25:39 +01:00
20170214110202_create_reports.rb Adding POST /api/v1/reports API, and a UI for submitting reports 2017-02-14 20:59:26 +01:00
20170217012631_add_reblog_of_id_foreign_key_to_statuses.rb Add foreign key to prevent reblogs of non-existent (after race conditions) statuses from happening 2017-02-17 02:33:10 +01:00
20170301222600_create_mutes.rb Feature conversations muting (#3017) 2017-05-15 03:04:13 +02:00
20170303212857_add_last_emailed_at_to_users.rb Add digest e-mails 2017-03-04 00:00:48 +01:00
20170304202101_add_type_to_media_attachments.rb Fix #431 - convert gif to webm during upload. Web UI treats them like it did 2017-03-04 23:02:24 +01:00
20170317193015_add_search_index_to_accounts.rb Make account search blazing fast and rank followers/followees higher in the results 2017-03-17 20:48:14 +01:00
20170318214217_add_header_remote_url_to_accounts.rb Federate header images, fix open-uri http->https redirection error 2017-03-18 22:51:20 +01:00
20170322021028_add_lowercase_index_to_accounts.rb More efficient single account retrieval (0.9ms vs 50ms before) 2017-03-22 03:21:38 +01:00
20170322143850_change_primary_key_to_bigint_on_statuses.rb Upgrade status IDs to bigint 2017-03-22 15:46:58 +01:00
20170322162804_add_search_index_to_tags.rb Fix full-text search query quotation, improve tag search performance with an index, 2017-03-22 17:36:34 +01:00
20170330021336_add_counter_caches.rb Fix up null values on latest migration, add notes 2017-03-30 16:06:27 +02:00
20170330163835_create_imports.rb Import feature for following/blocking lists (addresses #62, #177, #201, #454) 2017-03-30 19:42:33 +02:00
20170330164118_add_attachment_data_to_imports.rb Import feature for following/blocking lists (addresses #62, #177, #201, #454) 2017-03-30 19:42:33 +02:00
20170403172249_add_action_taken_by_account_id_to_reports.rb Add basic logging of who resolved report 2017-04-03 19:35:00 +02:00
20170405112956_add_index_on_mentions_status_id.rb Add index on mentions status_id 2017-04-05 13:32:57 +02:00
20170406215816_add_notifications_and_favourites_indices.rb Low-hanging fruit of query optimization, these indices were missing 2017-04-07 00:04:38 +02:00
20170409170753_add_last_webfingered_at_to_accounts.rb Refresh webfinger (#1323) 2017-04-15 03:16:05 +02:00
20170414080609_add_devise_two_factor_backupable_to_users.rb Add recovery code support for two-factor auth (#1773) 2017-04-15 13:26:03 +02:00
20170414132105_add_language_to_statuses.rb Add language detection (#1772) 2017-04-16 20:32:17 +02:00
20170418160728_add_indexes_to_reports_for_accounts.rb Admin reports with accounts (#2092) 2017-04-18 19:36:18 +02:00
20170423005413_add_allowed_languages_to_user.rb Filter on allowed user language preferences (#2361) 2017-05-01 17:42:13 +02:00
20170424112722_add_status_id_index_to_statuses_tags.rb Add index to statuses_tags#status_id (#2394) 2017-04-24 15:10:14 +02:00
20170425131920_add_media_attachment_meta.rb Add media dimensions (#2448) 2017-04-26 03:48:12 +02:00
20170425202925_add_oembed_to_preview_cards.rb OEmbed support for PreviewCard (#2337) 2017-04-27 14:42:22 +02:00
20170506235850_create_conversations.rb Add conversation model, <ostatus:conversation /> (#3016) 2017-05-12 19:09:21 +02:00
20170507000211_add_conversation_id_to_statuses.rb Add conversation model, <ostatus:conversation /> (#3016) 2017-05-12 19:09:21 +02:00
20170507141759_optimize_index_subscriptions.rb Add effective index to subscriptions (#2885) 2017-05-07 19:00:20 +02:00
20170508230434_create_conversation_mutes.rb Feature conversations muting (#3017) 2017-05-15 03:04:13 +02:00