mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:
committed by
Loïc Guitaut
parent
c4c3e8d40e
commit
db1c19d472
@@ -136,7 +136,7 @@ module ImportScripts::PhpBB3
|
||||
# This appears to be a reply. Let's try to find the Discourse topic_id for this message.
|
||||
parent_msg_id = get_import_id(row[:root_msg_id])
|
||||
parent = @lookup.topic_lookup_from_imported_post_id(parent_msg_id)
|
||||
parent[:topic_id] unless parent.blank?
|
||||
parent[:topic_id] if parent.present?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ module ImportScripts::PhpBB3
|
||||
normalization = "/#{prefix.gsub("/", '\/')}\\#{normalization}"
|
||||
end
|
||||
|
||||
normalizations << normalization unless normalizations.include?(normalization)
|
||||
normalizations << normalization if normalizations.exclude?(normalization)
|
||||
end
|
||||
|
||||
def permalink_exists(url)
|
||||
|
||||
Reference in New Issue
Block a user