mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:

committed by
Loïc Guitaut

parent
3b6d4c830f
commit
2a28cda15c
@ -73,7 +73,7 @@ class ImportScripts::Disqus < ImportScripts::Base
|
||||
if post.present? && post.topic.posts_count <= 1
|
||||
(t[:posts] || []).each do |p|
|
||||
post_user = find_existing_user(p[:author_email] || "", p[:author_username])
|
||||
next unless post_user.present?
|
||||
next if post_user.blank?
|
||||
|
||||
attrs = {
|
||||
user_id: post_user.id,
|
||||
|
Reference in New Issue
Block a user