mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 12:13:44 +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')
|
@error = I18n.t('user_api_key.invalid_token')
|
||||||
end
|
end
|
||||||
|
|
||||||
return render json: { error: I18n.t('email_login.invalid_token') }
|
render layout: 'no_ember'
|
||||||
end
|
end
|
||||||
|
|
||||||
def forgot_password
|
def forgot_password
|
||||||
|
|
|
@ -45,6 +45,7 @@ class UserAvatarsController < ApplicationController
|
||||||
params.require(:color)
|
params.require(:color)
|
||||||
params.require(:version)
|
params.require(:version)
|
||||||
params.require(:size)
|
params.require(:size)
|
||||||
|
|
||||||
hijack do
|
hijack do
|
||||||
begin
|
begin
|
||||||
proxy_avatar("https://avatars.discourse.org/#{params[:version]}/letter/#{params[:letter]}/#{params[:color]}/#{params[:size]}.png", Time.new('1990-01-01'))
|
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..."
|
log "Finalizing backup..."
|
||||||
|
|
||||||
@with_uploads ? create_archive : move_dump_backup
|
@with_uploads ? create_archive : move_dump_backup
|
||||||
|
|
||||||
unpause_sidekiq
|
|
||||||
upload_archive
|
upload_archive
|
||||||
|
|
||||||
after_create_hook
|
after_create_hook
|
||||||
|
|
|
@ -1259,19 +1259,6 @@ describe Search do
|
||||||
results = Search.execute('in:title status:open Discourse')
|
results = Search.execute('in:title status:open Discourse')
|
||||||
expect(results.posts.length).to eq(1)
|
expect(results.posts.length).to eq(1)
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
context 'ignore_diacritics' do
|
context 'ignore_diacritics' do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user