mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 10:16:45 +08:00
DEV: Fix modifying a frozen string.
This commit is contained in:
parent
dd49be27d3
commit
227bedebf7
@ -8,7 +8,7 @@ class OneboxController < ApplicationController
|
||||
def show
|
||||
unless params[:refresh] == 'true'
|
||||
preview = Oneboxer.cached_preview(params[:url])
|
||||
preview = preview.strip! if preview.present?
|
||||
preview = preview.strip if preview.present?
|
||||
return render(plain: preview) if preview.present?
|
||||
end
|
||||
|
||||
@ -31,7 +31,7 @@ class OneboxController < ApplicationController
|
||||
topic_id: topic_id
|
||||
)
|
||||
|
||||
preview = preview.strip! if preview.present?
|
||||
preview = preview.strip if preview.present?
|
||||
|
||||
Oneboxer.onebox_previewed!(user_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user