]> cat aescling's git repositories - mastodon.git/commit
Introduce StatusThreadingConcern (#3490)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Mon, 5 Jun 2017 14:07:44 +0000 (10:07 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 5 Jun 2017 14:07:44 +0000 (16:07 +0200)
commit6201f96b8a49d58b5b2d73fac9fa1fa93f5890ed
tree57e2f3b751dab120705459f5b9d9c39e2f7e63bb
parentc26cea262b7673b0b239dd1da6754e7788aa08d8
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
app/lib/status_filter.rb [new file with mode: 0644]
app/models/concerns/status_threading_concern.rb [new file with mode: 0644]
app/models/status.rb
spec/lib/status_filter_spec.rb [new file with mode: 0644]
spec/models/concerns/status_threading_concern_spec.rb [new file with mode: 0644]
spec/models/status_spec.rb