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:
parent
b1375ef44e
commit
9fbe1436b6
7 changed files with 100 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue