feat: Sort articles based on views (#7599)
This commit is contained in:
@@ -10,6 +10,6 @@ json.views article.views
|
||||
|
||||
if article.author.present?
|
||||
json.author do
|
||||
json.partial! 'public/api/v1/models/portal/author', formats: [:json], resource: article.author
|
||||
json.partial! 'public/api/v1/models/hc/author', formats: [:json], resource: article.author
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1 +1 @@
|
||||
json.array! @portals, partial: 'public/api/v1/models/portal', formats: [:json], as: :portal
|
||||
json.array! @portals, partial: 'public/api/v1/models/hc/portal', formats: [:json], as: :portal
|
||||
|
||||
@@ -1 +1 @@
|
||||
json.partial! 'public/api/v1/models/portal', formats: [:json], portal: @portal
|
||||
json.partial! 'public/api/v1/models/hc/portal', formats: [:json], portal: @portal
|
||||
|
||||
Reference in New Issue
Block a user