mastodon/app/models
Joël Quenneville d4c94fa004 DRY up reblog vs original status check
Checking reblog vs original status was happening in multiple places
across the app. For views, this logic was encapsulated in a helper
method named `proper_status` but in the other layers of the app, the
logic was duplicated.

Because the logic is used at all layers of the app, we extracted it into
a `Status#proper` method on the model and changed all uses of the logic
to use this method. There is now a single source of truth for this
condition.

We added test coverage to untested methods that got refactored.
2017-04-07 14:18:30 -04:00
..
concerns
web
.keep
account.rb
application_record.rb Fix rubocop issues, introduce usage of frozen literal to improve performance 2016-11-15 16:56:29 +01:00
block.rb add more tests to models 2017-04-05 00:29:56 +02:00
domain_block.rb Split public timeline into "public timeline" which is local, and 2017-02-19 20:25:54 +01:00
favourite.rb
feed.rb
follow.rb
follow_request.rb
import.rb Paperclip will complain on its own if this variable is missing 2017-04-01 22:16:26 +02:00
media_attachment.rb
mention.rb
mute.rb
notification.rb
preview_card.rb
remote_follow.rb
report.rb
setting.rb
status.rb
stream_entry.rb Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) 2017-04-07 05:56:56 +02:00
subscription.rb
tag.rb Fix full-text search query quotation, improve tag search performance with an index, 2017-03-22 17:36:34 +01:00
user.rb Add digest e-mails 2017-03-04 00:00:48 +01:00
web.rb Add extended about page stub 2017-01-13 03:24:41 +01:00