mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -11,7 +11,7 @@ class ComposerMessagesController < ApplicationController
|
||||
if params[:topic_id].present?
|
||||
topic = Topic.where(id: params[:topic_id]).first
|
||||
if guardian.can_see?(topic)
|
||||
json[:extras] = {duplicate_lookup: TopicLink.duplicate_lookup(topic)}
|
||||
json[:extras] = { duplicate_lookup: TopicLink.duplicate_lookup(topic) }
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user