PoC suggesting posts to channels.

This commit is contained in:
John Preston
2025-06-13 14:39:30 +04:00
parent 8dbc175c02
commit 7e5a29a5cc
42 changed files with 712 additions and 58 deletions

View File

@@ -162,6 +162,10 @@ int AppConfig::todoListItemTextLimit() const {
return get<int>(u"todo_item_length_max"_q, 64);
}
int AppConfig::suggestedPostStarsMax() const {
return get<int>(u"stars_suggested_post_amount_max"_q, 100'000);
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {

View File

@@ -88,6 +88,8 @@ public:
[[nodiscard]] int todoListTitleLimit() const;
[[nodiscard]] int todoListItemTextLimit() const;
[[nodiscard]] int suggestedPostStarsMax() const;
void refresh(bool force = false);
private: