mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 13:09:02 +08:00
VANILLA: the name is actually the username (WAT)
This commit is contained in:
parent
12b0d5b7bb
commit
071325ab98
@ -452,8 +452,14 @@ class ImportScripts::Base
|
|||||||
|
|
||||||
def update_category_featured_topics
|
def update_category_featured_topics
|
||||||
puts "updating featured topics in categories"
|
puts "updating featured topics in categories"
|
||||||
|
|
||||||
|
total_count = Category.count
|
||||||
|
progress_count = 0
|
||||||
|
|
||||||
Category.find_each do |category|
|
Category.find_each do |category|
|
||||||
CategoryFeaturedTopic.feature_topics_for(category)
|
CategoryFeaturedTopic.feature_topics_for(category)
|
||||||
|
progress_count += 1
|
||||||
|
print_status(progress_count, total_count)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ class ImportScripts::Vanilla < ImportScripts::Base
|
|||||||
u = {
|
u = {
|
||||||
id: user[:user_id],
|
id: user[:user_id],
|
||||||
email: user[:email],
|
email: user[:email],
|
||||||
name: user[:name],
|
username: user[:name],
|
||||||
created_at: parse_date(user[:date_inserted]),
|
created_at: parse_date(user[:date_inserted]),
|
||||||
bio_raw: clean_up(bio_raw),
|
bio_raw: clean_up(bio_raw),
|
||||||
avatar_url: user[:photo],
|
avatar_url: user[:photo],
|
||||||
@ -245,7 +245,7 @@ class ImportScripts::Vanilla < ImportScripts::Base
|
|||||||
.gsub("<", "<")
|
.gsub("<", "<")
|
||||||
.gsub(">", ">")
|
.gsub(">", ">")
|
||||||
# .gsub(/`([^`]+)`/im) { "`" + $1.gsub("*", "\u2603") + "`" }
|
# .gsub(/`([^`]+)`/im) { "`" + $1.gsub("*", "\u2603") + "`" }
|
||||||
# .gsub("*", "\*")
|
# .gsub("*", "\\*")
|
||||||
# .gsub("\u2603", "*")
|
# .gsub("\u2603", "*")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user