]> cat aescling's git repositories - mastodon.git/commit
Add option to be notified when a followed user posts (#13546)
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 18 Sep 2020 15:26:45 +0000 (17:26 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Sep 2020 15:26:45 +0000 (17:26 +0200)
commit974b1b79ce58e6799e5e5bb576e630ca783150de
tree93dfcb52fc58d714b3a9bd454f7589fe98c1d1ae
parent75e4bd9413143ee208d00814c728fc2bf0c58cf2
Add option to be notified when a followed user posts (#13546)

* Add bell button

Fix #4890

* Remove duplicate type from post-deployment migration

* Fix legacy class type mappings

* Improve query performance with better index

* Fix validation

* Remove redundant index from notifications
42 files changed:
app/controllers/api/v1/accounts_controller.rb
app/controllers/api/v1/follow_requests_controller.rb
app/javascript/mastodon/actions/accounts.js
app/javascript/mastodon/actions/notifications.js
app/javascript/mastodon/features/account/components/header.js
app/javascript/mastodon/features/account_timeline/components/header.js
app/javascript/mastodon/features/account_timeline/containers/header_container.js
app/javascript/mastodon/features/notifications/components/filter_bar.js
app/javascript/mastodon/features/notifications/components/notification.js
app/javascript/styles/mastodon/components.scss
app/lib/activitypub/activity.rb
app/lib/activitypub/activity/follow.rb
app/lib/activitypub/activity/like.rb
app/models/concerns/account_interactions.rb
app/models/follow.rb
app/models/follow_request.rb
app/models/notification.rb
app/serializers/rest/notification_serializer.rb
app/serializers/rest/relationship_serializer.rb
app/services/favourite_service.rb
app/services/follow_service.rb
app/services/import_service.rb
app/services/notify_service.rb
app/services/process_mentions_service.rb
app/services/reblog_service.rb
app/workers/feed_insert_worker.rb
app/workers/local_notification_worker.rb
app/workers/poll_expiration_notify_worker.rb
app/workers/refollow_worker.rb
app/workers/unfollow_follow_worker.rb
db/migrate/20200917192924_add_notify_to_follows.rb [new file with mode: 0644]
db/migrate/20200917193034_add_type_to_notifications.rb [new file with mode: 0644]
db/migrate/20200917222316_add_index_notifications_on_type.rb [new file with mode: 0644]
db/post_migrate/20200917193528_migrate_notifications_type.rb [new file with mode: 0644]
db/post_migrate/20200917222734_remove_index_notifications_on_account_activity.rb [new file with mode: 0644]
db/schema.rb
spec/controllers/api/v1/accounts_controller_spec.rb
spec/models/concerns/account_interactions_spec.rb
spec/models/follow_request_spec.rb
spec/services/import_service_spec.rb
spec/services/notify_service_spec.rb
spec/workers/refollow_worker_spec.rb