Skip to content

Commit 298ed7e

Browse files
committed
Merge remote-tracking branch 'origin/stable' into pkgr
2 parents 5690d25 + b9bc27e commit 298ed7e

23 files changed

Lines changed: 39 additions & 14 deletions

‎app/controllers/admin/backups_controller.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def show
7070
send_file backup.path
7171
else
7272
if @error
73-
render layout: 'no_ember', status: 422
73+
render template: 'admin/backups/show.html.erb', layout: 'no_ember', status: 422
7474
else
7575
render body: nil, status: 404
7676
end

‎app/controllers/users_controller.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ def password_reset
504504
success: false,
505505
message: @error,
506506
errors: @user&.errors&.to_hash,
507-
is_developer: UsernameCheckerService.is_developer?(@user.email),
508-
admin: @user.admin?
507+
is_developer: UsernameCheckerService.is_developer?(@user&.email),
508+
admin: @user&.admin?
509509
}
510510
else
511511
render json: {

‎app/models/topic.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ def pm_with_non_human_user?
12731273
end
12741274

12751275
def featured_link_root_domain
1276-
MiniSuffix.domain(URI.parse(self.featured_link).hostname)
1276+
MiniSuffix.domain(URI.parse(URI.encode(self.featured_link)).hostname)
12771277
end
12781278

12791279
private

‎app/models/topic_embed.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def self.absolutize_urls(url, contents)
182182
end
183183

184184
def self.topic_id_for_embed(embed_url)
185-
embed_url = normalize_url(embed_url)
186-
TopicEmbed.where("lower(embed_url) = ?", embed_url).pluck(:topic_id).first
185+
embed_url = normalize_url(embed_url).sub(/^https?\:\/\//, '')
186+
TopicEmbed.where("embed_url ~* '^https?://#{embed_url}$'").pluck(:topic_id).first
187187
end
188188

189189
def self.first_paragraph_from(html)

‎lib/cooked_post_processor.rb‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ def get_size(url)
237237
return unless SiteSetting.crawl_images? || Discourse.store.has_been_uploaded?(url)
238238

239239
@size_cache[url] = FastImage.size(absolute_url)
240-
rescue Zlib::BufError # FastImage.size raises BufError for some gifs
240+
rescue Zlib::BufError, URI::InvalidURIError, URI::InvalidComponentError
241+
# FastImage.size raises BufError for some gifs, leave it.
241242
end
242243

243244
def is_valid_image_url?(url)

‎lib/emoji/db.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5754,7 +5754,7 @@
57545754
},
57555755
{
57565756
"code": "1f92b",
5757-
"name": "sushing_face"
5757+
"name": "shushing_face"
57585758
},
57595759
{
57605760
"code": "1f92d",

‎lib/emoji/groups.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
"diversity": false
326326
},
327327
{
328-
"name": "sushing_face",
328+
"name": "shushing_face",
329329
"diversity": false
330330
},
331331
{

‎lib/version.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Discourse
44
module VERSION #:nodoc:
55
MAJOR = 1
66
MINOR = 9
7-
TINY = 0
7+
TINY = 1
88
PRE = nil
99

1010
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
5.35 KB
Loading
File renamed without changes.

0 commit comments

Comments
 (0)