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 DRY up reblog vs original status check 2017-04-07 14:18:30 -04:00
application_record.rb
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 fix rubocop issues 2017-04-05 00:47:17 +02:00
follow_request.rb add more tests to models 2017-04-05 00:29:56 +02:00
import.rb
media_attachment.rb
mention.rb add more tests to models 2017-04-05 00:29:56 +02:00
mute.rb
notification.rb
preview_card.rb
remote_follow.rb
report.rb
setting.rb
status.rb DRY up reblog vs original status check 2017-04-07 14:18:30 -04:00
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 Adding backtracing to Salmon/Processing workers 2016-11-28 19:11:36 +01:00
tag.rb
user.rb
web.rb