fix ordering of notes
This commit is contained in:
@@ -11,7 +11,7 @@ class LegacyController < ApplicationController
|
|||||||
@upload.server = Socket.gethostname
|
@upload.server = Socket.gethostname
|
||||||
@upload.file = params[:post][:file]
|
@upload.file = params[:post][:file]
|
||||||
@upload.source = params[:post][:source]
|
@upload.source = params[:post][:source]
|
||||||
@upload.tags = params[:post][:tag_string]
|
@upload.tag_string = params[:post][:tags]
|
||||||
@upload.parent_id = params[:post][:parent_id]
|
@upload.parent_id = params[:post][:parent_id]
|
||||||
@upload.rating = params[:post][:rating]
|
@upload.rating = params[:post][:rating]
|
||||||
@upload.md5_confirmation = params[:md5] if params[:md5].present?
|
@upload.md5_confirmation = params[:md5] if params[:md5].present?
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ module PostSets
|
|||||||
# don't call super because we don't want to repeat these queries
|
# don't call super because we don't want to repeat these queries
|
||||||
@tag_array = Tag.scan_query(params[:tags])
|
@tag_array = Tag.scan_query(params[:tags])
|
||||||
@page = params[:page] || 1
|
@page = params[:page] || 1
|
||||||
@posts = ::Post.tag_match(tag_string).has_notes.paginate(page)
|
@posts = ::Post.tag_match(tag_string).has_notes.paginate(page).reorder("last_noted_at desc")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user