1
0
Fork 0
forked from fedi/mastodon
mastodon/spec/controllers/api/v1
Eugen Rochko 620d0d8029 Account domain blocks (#2381)
* 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

* Adding account domain blocks that filter notifications and public timelines

* Add tests for domain blocks in notifications, public timelines
Filter reblogs of blocked domains from home

* Add API for listing and creating account domain blocks

* API for creating/deleting domain blocks, tests for Status#ancestors
and Status#descendants, filter domain blocks from them

* Filter domains in streaming API

* Update account_domain_block_spec.rb
2017-05-19 01:14:30 +02:00
..
accounts_controller_spec.rb Replace sprockets/browserify with Webpack (#2617) 2017-05-03 02:04:16 +02:00
apps_controller_spec.rb Fix tests, update goldfinger to catch XML errors 2016-09-30 23:08:29 +02:00
blocks_controller_spec.rb Add API for retrieving blocked accounts 2016-12-29 20:12:32 +01:00
domain_blocks_controller_spec.rb Account domain blocks (#2381) 2017-05-19 01:14:30 +02:00
favourites_controller_spec.rb Add API for retrieving favourites 2016-12-29 20:33:26 +01:00
follow_requests_controller_spec.rb Adding follow requests API 2016-12-26 19:30:45 +01:00
follows_controller_spec.rb After FollowService, re-fetch remote account asynchronously, do nothing 2017-02-11 14:25:01 +01:00
media_controller_spec.rb Account domain blocks (#2381) 2017-05-19 01:14:30 +02:00
mutes_controller_spec.rb Mute button progress so far. WIP, doesn't entirely work correctly. 2017-03-01 22:31:21 -06:00
notifications_controller_spec.rb Fix issue with intermittent api/v1/notifications failure (#1606) 2017-04-12 15:53:54 +02:00
statuses_controller_spec.rb Feature conversations muting (#3017) 2017-05-15 03:04:13 +02:00
timelines_controller_spec.rb Cleaning up format of broadcast real-time messages, removing 2017-02-02 00:03:31 +01:00