Implement ReplaceStr for thread subject #1031
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ArticleBase: Add member function that ReplaceStr applies to subject
スレタイトルに文字列置換を適用する
ArticleBase::get_modified_subject()
を追加します。置換したスレタイトルはキャッシュされて再び呼び出されたときに返します。
また、キャッシュの有無に関係なく置換を行うように指定する引数も実装します。
Apply ReplaceStr to thread subject
スレタイトルに置換文字列を適用するように処理を変更します。
ReplaceStrPref: Enable ReplaceStr config for thread subject
置換文字列の項目のうち省略しているスレタイトルを有効にして設定できるようにします。
互換性の注意
スレ一覧に表示されるスレタイトルは文字参照をそのまま表示するように変更されます。
デコードするには置換文字列設定のスレタイトル欄にある "対象の置換前に文字参照をデコード" を有効にしてください。
関連のissue: #76