mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 16:01:37 +01:00
Merge commit '496eb6f7a4fa7de54f26da9642a76e6884648102' into glitch-soc/merge-upstream
This commit is contained in:
commit
92df185be7
2 changed files with 5 additions and 2 deletions
|
@ -76,7 +76,10 @@ export function normalizeStatus(status, normalOldStatus) {
|
||||||
normalStatus.spoilerHtml = normalOldStatus.get('spoilerHtml');
|
normalStatus.spoilerHtml = normalOldStatus.get('spoilerHtml');
|
||||||
normalStatus.spoiler_text = normalOldStatus.get('spoiler_text');
|
normalStatus.spoiler_text = normalOldStatus.get('spoiler_text');
|
||||||
normalStatus.hidden = normalOldStatus.get('hidden');
|
normalStatus.hidden = normalOldStatus.get('hidden');
|
||||||
normalStatus.translation = normalOldStatus.get('translation');
|
|
||||||
|
if (normalOldStatus.get('translation')) {
|
||||||
|
normalStatus.translation = normalOldStatus.get('translation');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// If the status has a CW but no contents, treat the CW as if it were the
|
// If the status has a CW but no contents, treat the CW as if it were the
|
||||||
// status' contents, to avoid having a CW toggle with seemingly no effect.
|
// status' contents, to avoid having a CW toggle with seemingly no effect.
|
||||||
|
|
|
@ -15,7 +15,7 @@ module Mastodon::CLI
|
||||||
|
|
||||||
option :concurrency, type: :numeric, default: 5, aliases: [:c], desc: 'Workload will be split between this number of threads'
|
option :concurrency, type: :numeric, default: 5, aliases: [:c], desc: 'Workload will be split between this number of threads'
|
||||||
option :batch_size, type: :numeric, default: 100, aliases: [:b], desc: 'Number of records in each batch'
|
option :batch_size, type: :numeric, default: 100, aliases: [:b], desc: 'Number of records in each batch'
|
||||||
option :only, type: :array, enum: %w(accounts tags statuses), desc: 'Only process these indices'
|
option :only, type: :array, enum: %w(instances accounts tags statuses), desc: 'Only process these indices'
|
||||||
option :import, type: :boolean, default: true, desc: 'Import data from the database to the index'
|
option :import, type: :boolean, default: true, desc: 'Import data from the database to the index'
|
||||||
option :clean, type: :boolean, default: true, desc: 'Remove outdated documents from the index'
|
option :clean, type: :boolean, default: true, desc: 'Remove outdated documents from the index'
|
||||||
desc 'deploy', 'Create or upgrade Elasticsearch indices and populate them'
|
desc 'deploy', 'Create or upgrade Elasticsearch indices and populate them'
|
||||||
|
|
Loading…
Reference in a new issue