Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ReplaceStr for thread subject #1031

Merged

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Aug 20, 2022

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

ma8ma and others added 3 commits August 20, 2022 21:42
スレタイトルに文字列置換を適用する`ArticleBase::get_modified_subject()`
を追加します。
置換したスレタイトルはキャッシュされて再び呼び出されたときに返します。
また、キャッシュの有無に関係なく置換を行うように指定する引数も実装します。

Co-authored-by: JD Project <jd.project@acc574344b8506f1335297eaa7f74be0f7ea992b>
スレタイトルに置換文字列を適用するように処理を変更します。

Co-authored-by: JD Project <jd.project@acc574344b8506f1335297eaa7f74be0f7ea992b>
置換文字列の項目のうち省略しているスレタイトルを有効にして設定
できるようにします。

互換性の注意
スレ一覧に表示されるスレタイトルは文字参照をそのまま表示するように
変更されます。デコードするには置換文字列設定のスレタイトル欄にある
"対象の置換前に文字参照をデコード" を有効にしてください。

Co-authored-by: JD Project <jd.project@acc574344b8506f1335297eaa7f74be0f7ea992b>
@ma8ma ma8ma added the feature 機能の追加と削除 label Aug 20, 2022
@ma8ma ma8ma changed the title Implement replacestr for thread subject Implement ReplaceStr for thread subject Aug 20, 2022
@ma8ma ma8ma merged commit d9e1ea6 into JDimproved:master Aug 20, 2022
@ma8ma ma8ma deleted the implement-replacestr-for-thread-subject branch August 20, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 機能の追加と削除
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant