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…
Reference in New Issue