From 1406ea55305666958d265855cf400e7fc1cdbbf7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 7 Apr 2022 15:01:47 +0200 Subject: 4chan: move replies text to reactions, clear reactions when not visible on screen --- src/plugins/Fourchan.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins') 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 @@ -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; } -- cgit v1.2.3-70-g09d2