mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
DEV: Update syntax_tree to 6.0.1 (#20466)
This commit is contained in:
parent
bc4e016b49
commit
f63d18d6ca
@ -477,7 +477,7 @@ GEM
|
||||
sprockets (>= 3.0.0)
|
||||
sshkey (2.0.0)
|
||||
stackprof (0.2.23)
|
||||
syntax_tree (6.0.0)
|
||||
syntax_tree (6.0.1)
|
||||
prettier_print (>= 1.2.0)
|
||||
syntax_tree-disable_ternary (1.0.0)
|
||||
test-prof (1.2.0)
|
||||
|
@ -1510,7 +1510,8 @@ module Email
|
||||
|
||||
def self.elided_html(elided)
|
||||
html = +"\n\n" << "<details class='elided'>" << "\n"
|
||||
html << "<summary title='#{I18n.t("emails.incoming.show_trimmed_content")}'>···</summary>" << "\n\n"
|
||||
html << "<summary title='#{I18n.t("emails.incoming.show_trimmed_content")}'>···</summary>" <<
|
||||
"\n\n"
|
||||
html << elided << "\n\n"
|
||||
html << "</details>" << "\n"
|
||||
html
|
||||
|
@ -455,7 +455,8 @@ class TopicQuery
|
||||
if options[:preload_posters]
|
||||
user_ids = []
|
||||
topics.each do |ft|
|
||||
user_ids << ft.user_id << ft.last_post_user_id << ft.featured_user_ids << ft.allowed_user_ids
|
||||
user_ids << ft.user_id << ft.last_post_user_id << ft.featured_user_ids <<
|
||||
ft.allowed_user_ids
|
||||
end
|
||||
|
||||
user_lookup = UserLookup.new(user_ids)
|
||||
|
@ -74,7 +74,8 @@ module ImportScripts::PhpBB3
|
||||
arguments << "close=#{poll_data.close_time.iso8601}" if poll_data.close_time
|
||||
|
||||
if poll_data.max_options > 1
|
||||
arguments << "type=multiple" << "max=#{[poll_data.max_options, poll_data.options.count].min}"
|
||||
arguments << "type=multiple" <<
|
||||
"max=#{[poll_data.max_options, poll_data.options.count].min}"
|
||||
else
|
||||
arguments << "type=regular"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user