2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

UX: Replace heuristic solution root domain extraction for topic featured link.

This commit is contained in:
Guo Xiang Tan 2017-11-29 21:52:41 +08:00
parent b1375ef44e
commit 9fbe1436b6
7 changed files with 100 additions and 22 deletions

View file

@ -1266,6 +1266,10 @@ SQL
result.ntuples != 0
end
def featured_link_root_domain
MiniSuffix.domain(URI.parse(self.featured_link).hostname)
end
private
def update_category_topic_count_by(num)