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

Add thread abone config for low number of res #823

Merged

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Oct 2, 2021

板にある未取得スレッドの内、nレス以下のものをあぼ〜んにする機能を追加します。
また、設定の上限を定数から最大表示可能レス数の値に変更します。

元となった玉葱版パッチを元に改変しています。
設定ファイルのnレス以下の項目は名前を変更したため互換性がありません。

  • abone_min_number_thread -> abone_low_number_thread
  • aboneminnumberthread -> abonelownumberthread

関連のissue: #76

板にある未取得スレッドの内、nレス以下のものをあぼ〜んにする機能を追加
します。また、設定の上限を定数から最大表示可能レス数の値に変更します。

元となった玉葱版パッチを元に改変しています。
設定ファイルのnレス以下の項目は名前を変更したため互換性がありません。
- abone_min_number_thread -> abone_low_number_thread
- aboneminnumberthread -> abonelownumberthread

Co-authored-by: JD Project <jd.project@acc574344b8506f1335297eaa7f74be0f7ea992b>
@ma8ma ma8ma added the feature 機能の追加と削除 label Oct 2, 2021
@ma8ma ma8ma added this to In progress in State of JDim-v0.6.0+ via automation Oct 2, 2021
@@ -2962,10 +2962,11 @@ void BoardViewBase::slot_abone_thread()
// あぼーん情報更新
std::list< std::string > words = DBTREE::get_abone_list_word_thread( get_url_board() );
std::list< std::string > regexs = DBTREE::get_abone_list_regex_thread( get_url_board() );
const int number = DBTREE::get_abone_number_thread( get_url_board() );
const int low_number = DBTREE::get_abone_low_number_thread( get_url_board() );
const int high_number = DBTREE::get_abone_high_number_thread( get_url_board() );
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

元のパッチは設定名にmin, maxを使っていますがlow, highに置き換えています。

  • 長い識別子の中で違いがmxxの2文字しかなく読みづらい
  • 機能(nレス以下、nレス以上)に対して最小、最大の語句は内容を言い表せてないと感じる

@ma8ma ma8ma merged commit a10a01e into JDimproved:master Oct 2, 2021
State of JDim-v0.6.0+ automation moved this from In progress to Done Oct 2, 2021
@ma8ma ma8ma deleted the add-thread-abone-config-for-low-number-of-res branch October 2, 2021 07:10
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