mastodon/app/services
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
2017-11-15 03:56:41 +01:00
..
activitypub Update remote ActivityPub users when fetching their toots (#5545) 2017-10-30 00:24:16 +09:00
concerns Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
pubsubhubbub
account_search_service.rb
after_block_service.rb
authorize_follow_service.rb Add handling of Linked Data Signatures in payloads (#4687) 2017-08-26 13:47:38 +02:00
base_service.rb
batched_remove_status_service.rb Non-Serial ("Snowflake") IDs (#4801) 2017-10-04 09:56:37 +02:00
block_domain_from_account_service.rb
block_domain_service.rb Admin interface for listing, adding and removing custom emojis (#5002) 2017-09-19 03:52:38 +02:00
block_service.rb Add handling of Linked Data Signatures in payloads (#4687) 2017-08-26 13:47:38 +02:00
bootstrap_timeline_service.rb Default follows for new users (#4871) 2017-09-10 09:58:38 +02:00
fan_out_on_write_service.rb
favourite_service.rb Add handling of Linked Data Signatures in payloads (#4687) 2017-08-26 13:47:38 +02:00
fetch_atom_service.rb Fix regression in FetchRemoteResourceService (#5217) 2017-10-05 00:21:44 +02:00
fetch_link_card_service.rb Don't capture scheme-less URLs in the status (#5435) 2017-10-17 18:32:25 +02:00
fetch_remote_account_service.rb Validate id of ActivityPub representations (#5114) 2017-10-04 01:13:48 +02:00
fetch_remote_resource_service.rb Fix regression in FetchRemoteResourceService (#5217) 2017-10-05 00:21:44 +02:00
fetch_remote_status_service.rb Fix remote status fetching for “pure” ActivityPub WEB_ACCOUNT users (#5372) 2017-10-13 12:58:13 +02:00
follow_service.rb Default follows for new users (#4871) 2017-09-10 09:58:38 +02:00
mute_service.rb Optional notification muting (#5087) 2017-11-15 03:56:41 +01:00
notify_service.rb Optional notification muting (#5087) 2017-11-15 03:56:41 +01:00
post_status_service.rb Instantiate service classes for each call (fixes #5540) (#5543) 2017-10-27 19:08:30 +02:00
precompute_feed_service.rb Non-Serial ("Snowflake") IDs (#4801) 2017-10-04 09:56:37 +02:00
process_feed_service.rb Set snowflake IDs for backdated statuses (#5260) 2017-10-08 17:34:34 +02:00
process_hashtags_service.rb
process_interaction_service.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
process_mentions_service.rb Use already-known remote user data if resolving temporarily fails in mentions (#5702) 2017-11-15 01:06:49 +01:00
reblog_service.rb Avoid sending some ActivityPub payloads if the receiver will get them through distribution (#4739) 2017-09-01 21:26:01 +02:00
reject_follow_service.rb Add handling of Linked Data Signatures in payloads (#4687) 2017-08-26 13:47:38 +02:00
remove_status_service.rb Non-Serial ("Snowflake") IDs (#4801) 2017-10-04 09:56:37 +02:00
resolve_remote_account_service.rb Validate id of ActivityPub representations (#5114) 2017-10-04 01:13:48 +02:00
search_service.rb
send_interaction_service.rb Close connection when succeeded posting (#5390) 2017-10-14 14:38:57 +02:00
subscribe_service.rb Close connection when succeeded posting (#5390) 2017-10-14 14:38:57 +02:00
suspend_account_service.rb Add ability to disable login and mark accounts as memorial (#5615) 2017-11-07 19:06:44 +01:00
unblock_domain_service.rb
unblock_service.rb Add handling of Linked Data Signatures in payloads (#4687) 2017-08-26 13:47:38 +02:00
unfavourite_service.rb Add handling of Linked Data Signatures in payloads (#4687) 2017-08-26 13:47:38 +02:00
unfollow_service.rb Make "unfollow" undo pending outgoing follow request too (#4781) 2017-09-02 20:44:41 +02:00
unmute_service.rb
unsubscribe_service.rb Close connection when succeeded posting (#5390) 2017-10-14 14:38:57 +02:00
update_account_service.rb authorize-follow-requests-after-unlocking (#4658) 2017-08-26 12:40:03 +02:00
update_remote_profile_service.rb
verify_salmon_service.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00