Skip to content

Commit 64a5180

Browse files
committed
make merging protips not throw exceptions when user was deleted because of spam
1 parent 2dcc162 commit 64a5180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/db.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ namespace :db do
235235

236236
protip.flagged = row[:inappropriate].to_i > 0
237237

238-
if !protip.save
238+
if protip.user.blank? || !protip.save
239239
not_ported << protip
240240
end
241241
end

0 commit comments

Comments
 (0)