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
favourite.rb Add counter caches for a large performance increase on API requests 2017-03-30 15:06:59 +02:00
feed.rb Only call regeneration worker after first login after a 14 day break 2017-04-04 02:00:10 +02:00
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 Paperclip will complain on its own if this variable is missing 2017-04-01 22:16:26 +02:00
media_attachment.rb Performance improvement for profiles 2017-03-06 01:50:35 +01:00
mention.rb add more tests to models 2017-04-05 00:29:56 +02:00
mute.rb Fix #231 - Muting 2017-03-02 18:49:32 +01:00
notification.rb
preview_card.rb
remote_follow.rb
report.rb Add basic logging of who resolved report 2017-04-03 19:35:00 +02:00
setting.rb Add digest e-mails 2017-03-04 00:00:48 +01:00
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 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