mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Don't include reflections when checking for duplication topic links.
This commit is contained in:
@@ -233,7 +233,8 @@ class TopicLink < ActiveRecord::Base
|
||||
|
||||
results = TopicLink
|
||||
.includes(:post => :user)
|
||||
.where(topic_id: topic.id).limit(200)
|
||||
.where(topic_id: topic.id, reflection: false)
|
||||
.limit(200)
|
||||
|
||||
lookup = {}
|
||||
results.each do |tl|
|
||||
|
||||
Reference in New Issue
Block a user