mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 22:58:33 +08:00
Merge diffs from master
This commit is contained in:
parent
a4308fdd43
commit
04be572a92
|
@ -382,7 +382,7 @@ class SessionController < ApplicationController
|
|||
@error = I18n.t('user_api_key.invalid_token')
|
||||
end
|
||||
|
||||
return render json: { error: I18n.t('email_login.invalid_token') }
|
||||
render layout: 'no_ember'
|
||||
end
|
||||
|
||||
def forgot_password
|
||||
|
|
|
@ -45,6 +45,7 @@ class UserAvatarsController < ApplicationController
|
|||
params.require(:color)
|
||||
params.require(:version)
|
||||
params.require(:size)
|
||||
|
||||
hijack do
|
||||
begin
|
||||
proxy_avatar("https://avatars.discourse.org/#{params[:version]}/letter/#{params[:letter]}/#{params[:color]}/#{params[:size]}.png", Time.new('1990-01-01'))
|
||||
|
|
|
@ -48,8 +48,6 @@ module BackupRestore
|
|||
log "Finalizing backup..."
|
||||
|
||||
@with_uploads ? create_archive : move_dump_backup
|
||||
|
||||
unpause_sidekiq
|
||||
upload_archive
|
||||
|
||||
after_create_hook
|
||||
|
|
|
@ -1259,19 +1259,6 @@ describe Search do
|
|||
results = Search.execute('in:title status:open Discourse')
|
||||
expect(results.posts.length).to eq(1)
|
||||
end
|
||||
|
||||
it 'works irrespective of the order' do
|
||||
topic = Fabricate(:topic, title: "A topic about Discourse")
|
||||
Fabricate(:post, topic: topic, raw: "This is another post")
|
||||
topic2 = Fabricate(:topic, title: "This is another topic")
|
||||
Fabricate(:post, topic: topic2, raw: "Discourse is awesome")
|
||||
|
||||
results = Search.execute('Discourse in:title status:open')
|
||||
expect(results.posts.length).to eq(1)
|
||||
|
||||
results = Search.execute('in:title status:open Discourse')
|
||||
expect(results.posts.length).to eq(1)
|
||||
end
|
||||
end
|
||||
|
||||
context 'ignore_diacritics' do
|
||||
|
|
Loading…
Reference in New Issue
Block a user