このコミットが含まれているのは:
@@ -20,11 +20,9 @@ class TagDescriptionOperation
|
||||
base_revision_id: nil)
|
||||
ApplicationRecord.transaction do
|
||||
tag.lock!
|
||||
description = TagDescription.lock.find_by(
|
||||
description = TagDescription.lock.find_by!(
|
||||
tag_id: tag.id, language_code: LANGUAGE_CODE)
|
||||
description&.lock!
|
||||
tag_name = tag.tag_name(LANGUAGE_CODE)
|
||||
page = WikiPage.lock.find_by!(tag_name:)
|
||||
page = WikiPage.lock.find(description.id)
|
||||
revision = Wiki::CompatibilityWriter.update!(
|
||||
page:, body:, updated_by_user:, message:,
|
||||
base_revision_id:)
|
||||
|
||||
@@ -42,10 +42,10 @@ module Wiki
|
||||
end
|
||||
|
||||
def self.content! page:, body:, created_user:, message: nil, base_revision_id: nil
|
||||
tag = page.tag_name.tag
|
||||
if tag && page.tag_name.language_code == 'ja'
|
||||
description = TagDescription.find_by(id: page.id)
|
||||
if description
|
||||
return TagDescriptionOperation.update!(
|
||||
tag:, body:, updated_by_user: created_user,
|
||||
tag: description.tag, body:, updated_by_user: created_user,
|
||||
message:, base_revision_id:)
|
||||
end
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする