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/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
7 years ago
..
activitypub Update remote ActivityPub users when fetching their toots (#5545) 7 years ago
concerns Introduce OStatus::TagManager (#5008) 7 years ago
pubsubhubbub Fix #2672 - Connect signed PuSH subscription requests to instance domain (#4205) 8 years ago
account_search_service.rb Fix an error when a user tries to search nonexistent remote user (regression from #4275) (#4400) 8 years ago
after_block_service.rb Optimize MuteService and AfterBlockService (#2836) 8 years ago
authorize_follow_service.rb Add handling of Linked Data Signatures in payloads (#4687) 8 years ago
base_service.rb Remove unused AtomBuilderHelper (#1364) 8 years ago
batched_remove_status_service.rb Non-Serial ("Snowflake") IDs (#4801) 7 years ago
block_domain_from_account_service.rb Add buttons to block and unblock domain (#3127) 8 years ago
block_domain_service.rb Admin interface for listing, adding and removing custom emojis (#5002) 7 years ago
block_service.rb Add handling of Linked Data Signatures in payloads (#4687) 8 years ago
bootstrap_timeline_service.rb Default follows for new users (#4871) 7 years ago
fan_out_on_write_service.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 8 years ago
favourite_service.rb Add handling of Linked Data Signatures in payloads (#4687) 8 years ago
fetch_atom_service.rb Fix regression in FetchRemoteResourceService (#5217) 7 years ago
fetch_link_card_service.rb Don't capture scheme-less URLs in the status (#5435) 7 years ago
fetch_remote_account_service.rb Validate id of ActivityPub representations (#5114) 7 years ago
fetch_remote_resource_service.rb Fix regression in FetchRemoteResourceService (#5217) 7 years ago
fetch_remote_status_service.rb Fix remote status fetching for “pure” ActivityPub WEB_ACCOUNT users (#5372) 7 years ago
follow_service.rb Default follows for new users (#4871) 7 years ago
mute_service.rb Optional notification muting (#5087) 7 years ago
notify_service.rb Optional notification muting (#5087) 7 years ago
post_status_service.rb Instantiate service classes for each call (fixes #5540) (#5543) 7 years ago
precompute_feed_service.rb Non-Serial ("Snowflake") IDs (#4801) 7 years ago
process_feed_service.rb Set snowflake IDs for backdated statuses (#5260) 7 years ago
process_hashtags_service.rb Unify the method of extracting tags (#3138) 8 years ago
process_interaction_service.rb Introduce OStatus::TagManager (#5008) 7 years ago
process_mentions_service.rb Use already-known remote user data if resolving temporarily fails in mentions (#5702) 7 years ago
reblog_service.rb Avoid sending some ActivityPub payloads if the receiver will get them through distribution (#4739) 7 years ago
reject_follow_service.rb Add handling of Linked Data Signatures in payloads (#4687) 8 years ago
remove_status_service.rb Non-Serial ("Snowflake") IDs (#4801) 7 years ago
resolve_remote_account_service.rb Validate id of ActivityPub representations (#5114) 7 years ago
search_service.rb Add specs (and refactor) of FetchRemoteResourceService and SearchService (#2812) 8 years ago
send_interaction_service.rb Close connection when succeeded posting (#5390) 7 years ago
subscribe_service.rb Close connection when succeeded posting (#5390) 7 years ago
suspend_account_service.rb Add ability to disable login and mark accounts as memorial (#5615) 7 years ago
unblock_domain_service.rb Allow domain blocks that only reject media without silencing or suspending (#4325) 8 years ago
unblock_service.rb Add handling of Linked Data Signatures in payloads (#4687) 8 years ago
unfavourite_service.rb Add handling of Linked Data Signatures in payloads (#4687) 8 years ago
unfollow_service.rb Make "unfollow" undo pending outgoing follow request too (#4781) 7 years ago
unmute_service.rb Fix #231 - Muting 8 years ago
unsubscribe_service.rb Close connection when succeeded posting (#5390) 7 years ago
update_account_service.rb authorize-follow-requests-after-unlocking (#4658) 8 years ago
update_remote_profile_service.rb Account deletion (#3728) 8 years ago
verify_salmon_service.rb Introduce OStatus::TagManager (#5008) 7 years ago