You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/controllers
Surinna Curtis 031a5a8f92 Optional notification muting (#5087)
* Add a hide_notifications column to mutes

* Add muting_notifications? and a notifications argument to mute!

* block notifications in notify_service from hard muted accounts

* Add specs for how mute! interacts with muting_notifications?

* specs testing that hide_notifications in mutes actually hides notifications

* Add support for muting notifications in MuteService

* API support for muting notifications (and specs)

* Less gross passing of notifications flag

* Break out a separate mute modal with a hide-notifications checkbox.

* Convert profile header mute to use mute modal

* Satisfy eslint.

* specs for MuteService notifications params

* add trailing newlines to files for Pork :)

* Put the label for the hide notifications checkbox in a label element.

* Add a /api/v1/mutes/details route that just returns the array of mutes.

* Define a serializer for /api/v1/mutes/details

* Add more specs for the /api/v1/mutes/details endpoint

* Expose whether a mute hides notifications in the api/v1/relationships endpoint

* Show whether muted users' notifications are muted in account lists

* Allow modifying the hide_notifications of a mute with the /api/v1/accounts/:id/mute endpoint

* make the hide/unhide notifications buttons work

* satisfy eslint

* In probably dead code, replace a dispatch of muteAccount that was skipping the modal with launching the mute modal.

* fix a missing import

* add an explanatory comment to AccountInteractions

* Refactor handling of default params for muting to make code cleaner

* minor code style fixes oops

* Fixed a typo that was breaking the account mute API endpoint

* Apply white-space: nowrap to account relationships icons

* Fix code style issues

* Remove superfluous blank line

* Rename /api/v1/mutes/details -> /api/v2/mutes

* Don't serialize "account" in MuteSerializer

Doing so is somewhat unnecessary since it's always the current user's account.

* Fix wrong variable name in api/v2/mutes

* Use Toggle in place of checkbox in the mute modal.

* Make the Toggle in the mute modal look better

* Code style changes in specs and removed an extra space

* Code review suggestions from akihikodaki

Also fixed a syntax error in tests for AccountInteractions.

* Make AddHideNotificationsToMute Concurrent

It's not clear how much this will benefit instances in practice, as the
number of mutes tends to be pretty small, but this should prevent any
blocking migrations nonetheless.

* Fix up migration things

* Remove /api/v2/mutes
7 years ago
..
activitypub Set correct content-type for ActivityPub JSON (#4592) 8 years ago
admin Add moderation note (#5240) 7 years ago
api Optional notification muting (#5087) 7 years ago
auth Default follows for new users (#4871) 8 years ago
concerns Improve spec of Feed and UserTrackingConcern (#5367) 7 years ago
oauth Cover Oauth::AuthorizedApplicationsController (#3359) 8 years ago
settings Separate notifications preferences from general preferences (#4447) 7 years ago
well_known Improve ActivityPub representations (#3844) 8 years ago
about_controller_spec.rb Cover AboutController more in spec (#3226) 8 years ago
account_follow_controller_spec.rb Cover AccountFollowController more in spec (#3227) 8 years ago
account_unfollow_controller_spec.rb Cover AccountUnfollowController more in spec (#3228) 8 years ago
accounts_controller_spec.rb Rewrite account_controller_spec (#5633) 7 years ago
application_controller_spec.rb Use "match_array" only for order independent assertions (#3626) 8 years ago
authorize_follows_controller_spec.rb Remote following success page (#4129) 8 years ago
follower_accounts_controller_spec.rb Introduce recent to Follow (#3247) 8 years ago
following_accounts_controller_spec.rb Introduce recent to Follow (#3247) 8 years ago
home_controller_spec.rb When web UI URL used while logged out, redirect to static page (#4954) 8 years ago
manifests_controller_spec.rb Make Chrome splash screen same color as web UI's background color (#5169) 7 years ago
media_controller_spec.rb Extract authorization policy for viewing statuses (#3150) 8 years ago
remote_follow_controller_spec.rb rescue HTTP::ConnectionError in RemoteFollowController#create (#4726) 8 years ago
statuses_controller_spec.rb Fetch reblogs as Announce activity instead of Note object (#4672) 8 years ago
stream_entries_controller_spec.rb Update status embeds (#4742) 8 years ago
tags_controller_spec.rb Redesign public hashtag pages (#5237) 7 years ago