1
0
Fork 0
forked from fedi/mastodon
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 Resolve issue with rendering authorize/reject Salmon slaps 2017-02-11 19:42:05 +01:00
web Persist UI settings, add missing localizations for German 2017-01-09 14:00:55 +01:00
.keep Initial commit 2016-02-20 22:53:20 +01:00
account.rb DRY up reblog vs original status check 2017-04-07 14:18:30 -04:00
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 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 Removed accidental n+1 query from notifications, updated some deps, 2017-01-26 14:52:07 +01:00
preview_card.rb Fix #463 - Fetch and display previews of URLs using OpenGraph tags 2017-01-20 01:00:14 +01:00
remote_follow.rb Adding remote follow button 2017-01-01 19:54:34 +01:00
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 Add extended about page stub 2017-01-13 03:24:41 +01:00