Merge branch 'asonix/changes' into asonix/downstream
This commit is contained in:
commit
7e70435c1e
|
@ -50,7 +50,6 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
||||||
resource.registration_form_time = session[:registration_form_time]
|
resource.registration_form_time = session[:registration_form_time]
|
||||||
resource.sign_up_ip = request.remote_ip
|
resource.sign_up_ip = request.remote_ip
|
||||||
|
|
||||||
resource.current_sign_in_ip = request.remote_ip if resource.current_sign_in_ip.nil?
|
|
||||||
resource.build_account if resource.account.nil?
|
resource.build_account if resource.account.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
module LanguagesHelper
|
module LanguagesHelper
|
||||||
ISO_639_1 = {
|
ISO_639_1 = {
|
||||||
squeak: ["Squeak", "Squeak"].freeze,
|
|
||||||
dog: ["Dog", "Dog"].freeze,
|
|
||||||
lion: ["Lion", "Lion"].freeze,
|
|
||||||
aa: ['Afar', 'Afaraf'].freeze,
|
aa: ['Afar', 'Afaraf'].freeze,
|
||||||
ab: ['Abkhaz', 'аҧсуа бызшәа'].freeze,
|
ab: ['Abkhaz', 'аҧсуа бызшәа'].freeze,
|
||||||
ae: ['Avestan', 'avesta'].freeze,
|
ae: ['Avestan', 'avesta'].freeze,
|
||||||
|
@ -38,6 +35,7 @@ module LanguagesHelper
|
||||||
cy: ['Welsh', 'Cymraeg'].freeze,
|
cy: ['Welsh', 'Cymraeg'].freeze,
|
||||||
da: ['Danish', 'dansk'].freeze,
|
da: ['Danish', 'dansk'].freeze,
|
||||||
de: ['German', 'Deutsch'].freeze,
|
de: ['German', 'Deutsch'].freeze,
|
||||||
|
dog: ["Dog", "Dog"].freeze,
|
||||||
dv: ['Divehi', 'Dhivehi'].freeze,
|
dv: ['Divehi', 'Dhivehi'].freeze,
|
||||||
dz: ['Dzongkha', 'རྫོང་ཁ'].freeze,
|
dz: ['Dzongkha', 'རྫོང་ཁ'].freeze,
|
||||||
ee: ['Ewe', 'Eʋegbe'].freeze,
|
ee: ['Ewe', 'Eʋegbe'].freeze,
|
||||||
|
@ -99,6 +97,7 @@ module LanguagesHelper
|
||||||
lb: ['Luxembourgish', 'Lëtzebuergesch'].freeze,
|
lb: ['Luxembourgish', 'Lëtzebuergesch'].freeze,
|
||||||
lg: ['Ganda', 'Luganda'].freeze,
|
lg: ['Ganda', 'Luganda'].freeze,
|
||||||
li: ['Limburgish', 'Limburgs'].freeze,
|
li: ['Limburgish', 'Limburgs'].freeze,
|
||||||
|
lion: ["Lion", "Lion"].freeze,
|
||||||
ln: ['Lingala', 'Lingála'].freeze,
|
ln: ['Lingala', 'Lingála'].freeze,
|
||||||
lo: ['Lao', 'ພາສາ'].freeze,
|
lo: ['Lao', 'ພາສາ'].freeze,
|
||||||
lt: ['Lithuanian', 'lietuvių kalba'].freeze,
|
lt: ['Lithuanian', 'lietuvių kalba'].freeze,
|
||||||
|
@ -152,6 +151,7 @@ module LanguagesHelper
|
||||||
sn: ['Shona', 'chiShona'].freeze,
|
sn: ['Shona', 'chiShona'].freeze,
|
||||||
so: ['Somali', 'Soomaaliga'].freeze,
|
so: ['Somali', 'Soomaaliga'].freeze,
|
||||||
sq: ['Albanian', 'Shqip'].freeze,
|
sq: ['Albanian', 'Shqip'].freeze,
|
||||||
|
squeak: ["Squeak", "Squeak"].freeze,
|
||||||
sr: ['Serbian', 'српски језик'].freeze,
|
sr: ['Serbian', 'српски језик'].freeze,
|
||||||
ss: ['Swati', 'SiSwati'].freeze,
|
ss: ['Swati', 'SiSwati'].freeze,
|
||||||
st: ['Southern Sotho', 'Sesotho'].freeze,
|
st: ['Southern Sotho', 'Sesotho'].freeze,
|
||||||
|
|
|
@ -65,14 +65,6 @@ module StatusesHelper
|
||||||
embedded_view? ? '_blank' : nil
|
embedded_view? ? '_blank' : nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def acct(account)
|
|
||||||
if account.local?
|
|
||||||
"@#{account.acct}@#{Rails.configuration.x.local_domain}"
|
|
||||||
else
|
|
||||||
"@#{account.acct}"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def text_formatting_classes
|
def text_formatting_classes
|
||||||
case current_user&.setting_strip_formatting
|
case current_user&.setting_strip_formatting
|
||||||
when 'none', nil
|
when 'none', nil
|
||||||
|
|
|
@ -103,16 +103,6 @@ class SearchResults extends ImmutablePureComponent {
|
||||||
<div className='search-results__section'>
|
<div className='search-results__section'>
|
||||||
<h5><Icon id='quote-right' fixedWidth /><FormattedMessage id='search_results.statuses' defaultMessage='Toots' /></h5>
|
<h5><Icon id='quote-right' fixedWidth /><FormattedMessage id='search_results.statuses' defaultMessage='Toots' /></h5>
|
||||||
|
|
||||||
<div className='search-results__info'>
|
|
||||||
<FormattedMessage id='search_results.statuses_fts_disabled' defaultMessage='Searching toots by their content is not enabled on this Mastodon server.' />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
} else if(results.get('statuses') && results.get('statuses').size === 0 && !searchEnabled && !(searchTerm.startsWith('@') || searchTerm.startsWith('#') || searchTerm.includes(' '))) {
|
|
||||||
statuses = (
|
|
||||||
<div className='search-results__section'>
|
|
||||||
<h5><Icon id='quote-right' fixedWidth /><FormattedMessage id='search_results.statuses' defaultMessage='Toots' /></h5>
|
|
||||||
|
|
||||||
<div className='search-results__info'>
|
<div className='search-results__info'>
|
||||||
<FormattedMessage id='search_results.statuses_fts_disabled' defaultMessage='Searching toots by their content is not enabled on this Mastodon server.' />
|
<FormattedMessage id='search_results.statuses_fts_disabled' defaultMessage='Searching toots by their content is not enabled on this Mastodon server.' />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,8 +16,6 @@ class ActivityPub::ProcessAccountService < BaseService
|
||||||
@domain = domain
|
@domain = domain
|
||||||
@collections = {}
|
@collections = {}
|
||||||
|
|
||||||
return if auto_suspend?
|
|
||||||
|
|
||||||
RedisLock.acquire(lock_options) do |lock|
|
RedisLock.acquire(lock_options) do |lock|
|
||||||
if lock.acquired?
|
if lock.acquired?
|
||||||
@account = Account.remote.find_by(uri: @uri) if @options[:only_key]
|
@account = Account.remote.find_by(uri: @uri) if @options[:only_key]
|
||||||
|
|
|
@ -70,10 +70,6 @@ module Mastodon
|
||||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||||
config.i18n.available_locales = [
|
config.i18n.available_locales = [
|
||||||
:af,
|
:af,
|
||||||
:dog,
|
|
||||||
:lion,
|
|
||||||
:squeak,
|
|
||||||
:en,
|
|
||||||
:ar,
|
:ar,
|
||||||
:ast,
|
:ast,
|
||||||
:bg,
|
:bg,
|
||||||
|
@ -86,6 +82,7 @@ module Mastodon
|
||||||
:cy,
|
:cy,
|
||||||
:da,
|
:da,
|
||||||
:de,
|
:de,
|
||||||
|
:dog,
|
||||||
:el,
|
:el,
|
||||||
:en,
|
:en,
|
||||||
:eo,
|
:eo,
|
||||||
|
@ -116,6 +113,7 @@ module Mastodon
|
||||||
:kn,
|
:kn,
|
||||||
:ko,
|
:ko,
|
||||||
:ku,
|
:ku,
|
||||||
|
:lion,
|
||||||
:lt,
|
:lt,
|
||||||
:lv,
|
:lv,
|
||||||
:mk,
|
:mk,
|
||||||
|
@ -137,6 +135,7 @@ module Mastodon
|
||||||
:sk,
|
:sk,
|
||||||
:sl,
|
:sl,
|
||||||
:sq,
|
:sq,
|
||||||
|
:squeak,
|
||||||
:sr,
|
:sr,
|
||||||
:'sr-Latn',
|
:'sr-Latn',
|
||||||
:sv,
|
:sv,
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
# frozen_string_literal: true
|
|
||||||
module Mastodon
|
|
||||||
module Version
|
|
||||||
module_function
|
|
||||||
def source_base_url
|
|
||||||
'https://git.asonix.dog/asonix/mastodon'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1277,11 +1277,11 @@ dog:
|
||||||
decimal_units:
|
decimal_units:
|
||||||
format: "%n%u"
|
format: "%n%u"
|
||||||
units:
|
units:
|
||||||
bildog: B
|
billion: B
|
||||||
mildog: M
|
million: M
|
||||||
quadrildog: Q
|
quadrillion: Q
|
||||||
thousand: K
|
thousand: K
|
||||||
trildog: T
|
trillion: T
|
||||||
unit: ''
|
unit: ''
|
||||||
otp_authentication:
|
otp_authentication:
|
||||||
code_hint: Enter the code generated by your authenticator app to confirm
|
code_hint: Enter the code generated by your authenticator app to confirm
|
||||||
|
|
Loading…
Reference in a new issue