1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-12-05 18:28:45 +09:00
whippy-edition/spec/controllers/api/v1/accounts
aschmitz 4de211b80a Break out nested relationship API keys (#5887)
* Break out nested relationship API keys

This closes #5856 by restoring the existing behavior of the `muting`
and `following` keys (returning booleans rather than truthy or false).
It adds `showing_reblogs` and `muting_notifications` keys:

* `showing_reblogs` returns true if:
  1. You've requested to follow the user, with reblogs shown, or
  2. You are following the user, with reblogs shown.
* `muting_notifications` returns true if you have muted the user and
  their notifications as well.

* Rubocop fix

* Fix pulling reblog/mute status from relationships

I could swear this had passed tests before, but apparently not.
Works now.

* More test fixes

Really, you'd expect this to be more straightforward.
2017-12-06 16:10:54 +01:00
..
credentials_controller_spec.rb Fix #4637 - Re-add missing doorkeeper_authorize for /api/v1/verify_credentials (#4650) 2017-08-21 00:41:08 +02:00
follower_accounts_controller_spec.rb Introduce access token fabricators (#4401) 2017-07-27 15:16:07 +02:00
following_accounts_controller_spec.rb Introduce access token fabricators (#4401) 2017-07-27 15:16:07 +02:00
relationships_controller_spec.rb Break out nested relationship API keys (#5887) 2017-12-06 16:10:54 +01:00
search_controller_spec.rb Introduce access token fabricators (#4401) 2017-07-27 15:16:07 +02:00
statuses_controller_spec.rb Pinned statuses (#4675) 2017-08-25 01:41:18 +02:00