diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-04-07 15:01:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-04-08 23:37:43 +0200 |
commit | 1406ea55305666958d265855cf400e7fc1cdbbf7 (patch) | |
tree | 07dfe40df98cf8939c7f1bcc73188b1ad3a1073c /src/plugins | |
parent | 8433b0f6f7414a040b25b34515d75b907c584321 (diff) |
4chan: move replies text to reactions, clear reactions when not visible on screen
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Fourchan.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp index 51a3cc5..4522a56 100644 --- a/src/plugins/Fourchan.cpp +++ b/src/plugins/Fourchan.cpp @@ -4,6 +4,7 @@ #include "../../include/StringUtils.hpp" #include "../../include/NetUtils.hpp" #include "../../include/Notification.hpp" +#include "../../include/Theme.hpp" #include "../../external/cppcodec/base64_rfc4648.hpp" #include "../../include/QuickMedia.hpp" #include <HtmlParser.h> @@ -273,6 +274,7 @@ namespace QuickMedia { } else { result_items[body_item_index]->replies_to.push_back(it->second); result_items[it->second]->replies.push_back(body_item_index); + result_items[it->second]->add_reaction(">>" + result_items[body_item_index]->post_number, nullptr, get_theme().replies_text_color); } break; } |