mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FIX: Improve top links section from user summary (#15675)
* Do not extract links for hotlinked images * Include only links that have been clicked at least once in user summary
This commit is contained in:
@ -40,6 +40,7 @@ class UserSummary
|
||||
.merge(Topic.listable_topics.visible.secured(@guardian))
|
||||
.where(user: @user)
|
||||
.where(internal: false, reflection: false, quote: false)
|
||||
.where('clicks > 0')
|
||||
.order('clicks DESC, topic_links.created_at DESC')
|
||||
.limit(MAX_SUMMARY_RESULTS)
|
||||
end
|
||||
|
Reference in New Issue
Block a user