Merge commit 'e95e896f10
' into kb_migration_development
This commit is contained in:
commit
5759c6628f
14 changed files with 142 additions and 151 deletions
|
@ -145,7 +145,7 @@ class Rack::Attack
|
|||
'Content-Type' => 'application/json',
|
||||
'X-RateLimit-Limit' => match_data[:limit].to_s,
|
||||
'X-RateLimit-Remaining' => '0',
|
||||
'X-RateLimit-Reset' => (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6),
|
||||
'X-RateLimit-Reset' => (now + (match_data[:period] - (now.to_i % match_data[:period]))).iso8601(6),
|
||||
}
|
||||
|
||||
[429, headers, [{ error: I18n.t('errors.429') }.to_json]]
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const rimraf = require('rimraf');
|
||||
const mkdirp = require('mkdirp');
|
||||
const { mkdirp } = require('mkdirp');
|
||||
|
||||
const localesJsonPath = path.join(__dirname, '../../app/javascript/mastodon/locales');
|
||||
const locales = fs.readdirSync(localesJsonPath).filter(filename => {
|
||||
|
@ -48,5 +48,3 @@ setLocale({messages, localeData});
|
|||
});
|
||||
|
||||
module.exports = outPaths;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue