mastodon/spec/controllers
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
..
activitypub Set correct content-type for ActivityPub JSON (#4592) 2017-08-14 04:16:43 +02:00
admin Add moderation note (#5240) 2017-10-07 20:26:43 +02:00
api Break out nested relationship API keys (#5887) 2017-12-06 16:10:54 +01:00
auth Default follows for new users (#4871) 2017-09-10 09:58:38 +02:00
concerns Improve spec of Feed and UserTrackingConcern (#5367) 2017-10-13 11:00:11 +02:00
oauth Cover Oauth::AuthorizedApplicationsController (#3359) 2017-05-29 18:08:05 +02:00
settings Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
well_known Improve ActivityPub representations (#3844) 2017-07-15 03:01:39 +02:00
about_controller_spec.rb
account_follow_controller_spec.rb
account_unfollow_controller_spec.rb Cover AccountUnfollowController more in spec (#3228) 2017-05-22 17:58:49 +02:00
accounts_controller_spec.rb Rewrite account_controller_spec (#5633) 2017-11-09 14:36:17 +01:00
application_controller_spec.rb Use "match_array" only for order independent assertions (#3626) 2017-06-07 12:59:28 -04:00
authorize_follows_controller_spec.rb Remote following success page (#4129) 2017-07-10 18:05:06 +02:00
follower_accounts_controller_spec.rb Introduce recent to Follow (#3247) 2017-05-23 13:12:19 +02:00
following_accounts_controller_spec.rb Introduce recent to Follow (#3247) 2017-05-23 13:12:19 +02:00
home_controller_spec.rb When web UI URL used while logged out, redirect to static page (#4954) 2017-09-15 00:57:08 +02:00
manifests_controller_spec.rb Make Chrome splash screen same color as web UI's background color (#5169) 2017-10-02 01:23:32 +02:00
media_controller_spec.rb Extract authorization policy for viewing statuses (#3150) 2017-05-29 18:22:22 +02:00
remote_follow_controller_spec.rb rescue HTTP::ConnectionError in RemoteFollowController#create (#4726) 2017-08-28 19:12:09 +02:00
statuses_controller_spec.rb Fetch reblogs as Announce activity instead of Note object (#4672) 2017-08-24 16:21:42 +02:00
stream_entries_controller_spec.rb Update status embeds (#4742) 2017-08-30 10:23:43 +02:00
tags_controller_spec.rb Redesign public hashtag pages (#5237) 2017-10-07 20:00:35 +02:00