Commit Graph

5 Commits (85d5da86dfd3589e345a68c19fff7d7bc2524532)

Author SHA1 Message Date
Surinna Curtis d880b3182b minor code style fixes oops 8 years ago
Surinna Curtis 0f2af2a974 Add specs for how mute! interacts with muting_notifications? 8 years ago
Matt Jankowski 6201f96b8a Introduce StatusThreadingConcern (#3490)
* Add a StatusFilter class to identify visibility of statuses by accounts

* Extract StatusThreadingConcern from Status

* Clarify purpose of checking for nil account
9 years ago
Matt Jankowski d1e08bd38c Handle nil and blank cases in Account finders (#3500) 9 years ago
Matt Jankowski 2cc3111a77 Expand spec coverage and refactor the `Account.find_` methods (#3485)
* Move specs for account finder methods to concern spec

* Move account finder methods to concern

* Improve spec wording

* Use more explicit comparison to ensure correct return value

* Add coverage for .find_local! and .find_remote!

* Add some methods to the finder

* Use arel on matching_username method

* Avoid ternary in matching domain method

* Simplify finder methods

* Use an AccountFinder class to simplify lookup
9 years ago