zcuric
(Zdravko)
2020 年 5 月 6 日午前 9:13
1
再現手順:
Customize > Text で、既存のテキスト ((topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)) を js.topic.deleted_by_author.one および js.topic.deleted_by_author.other の値に変更します。
一般ユーザーとしてトピックを作成します。
一般ユーザーとしてそのトピックを削除します。
更新されたテキストが表示されるはずですが、(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) が表示されます。
問題は以下のコードにある可能性があります:
end
end
# skip also publishing topic stats because they weren't updated yet
@post.publish_change_to_clients! :recovered, { skip_topic_stats: true }
TopicTrackingState.publish_recover(@post.topic) if @post.topic && @post.is_first_post?
end
# When a post is properly deleted. Well, it's still soft deleted, but it will no longer
# show up in the topic
# Permanent option allows to hard delete.
def perform_delete
# All posts in the topic must be force deleted if the first is force
# deleted (except @post which is destroyed by current instance).
if @topic && @post.is_first_post? && permanent?
@topic.posts.with_deleted.find_each do |post|
PostDestroyer.new(@user, post, @opts).destroy if post.id != @post.id
end
end
Post.transaction do
ここには js.topic.deleted_by_author.one または js.topic.deleted_by_author.other が参照されておらず、存在しないロケール設定の js.topic.deleted_by_author だけが参照されているようです。
「いいね!」 2
riking
(Kane York)
2020 年 5 月 6 日午後 9:56
3
これは、自己削除テキストが翻訳され、サーバー上の投稿リビジョンとして保存されるために発生しています。翻訳の変更は、新しく削除された投稿にのみ適用されます。
「いいね!」 6
zcuric
(Zdravko)
2020 年 5 月 11 日午後 7:27
4
@riking これはバグではないのでしょうか?詳しくはわかりませんが、この部分は以前から翻訳されており、新しい投稿でもこの問題が解消されていません。
「いいね!」 1