22#define GOLOS_FOLLOW_API_OBJECT_HPP
33
44#include < golos/api/comment_api_object.hpp>
5+ #include < golos/api/reblog_entry.hpp>
56#include < golos/plugins/follow/follow_objects.hpp>
67#include " follow_forward.hpp"
78
89namespace golos {
910 namespace plugins {
1011 namespace follow {
1112 using golos::api::comment_api_object;
13+ using golos::api::reblog_entry;
1214
1315 struct feed_entry {
1416 std::string author;
1517 std::string permlink;
1618 std::vector<std::string> reblog_by;
19+ std::vector<reblog_entry> reblog_entries;
1720 time_point_sec reblog_on;
1821 uint32_t entry_id = 0 ;
1922 };
2023
2124 struct comment_feed_entry {
2225 comment_api_object comment;
2326 std::vector<std::string> reblog_by;
27+ std::vector<reblog_entry> reblog_entries;
2428 time_point_sec reblog_on;
2529 uint32_t entry_id = 0 ;
2630 };
@@ -31,13 +35,19 @@ namespace golos {
3135 std::string blog;
3236 time_point_sec reblog_on;
3337 uint32_t entry_id = 0 ;
38+ std::string reblog_title;
39+ std::string reblog_body;
40+ std::string reblog_json_metadata;
3441 };
3542
3643 struct comment_blog_entry {
3744 comment_api_object comment;
3845 std::string blog;
3946 time_point_sec reblog_on;
4047 uint32_t entry_id = 0 ;
48+ std::string reblog_title;
49+ std::string reblog_body;
50+ std::string reblog_json_metadata;
4151 };
4252
4353 struct account_reputation {
@@ -55,8 +65,10 @@ namespace golos {
5565 std::string author;
5666 uint32_t count;
5767 };
68+
5869 struct follow_count_api_obj {
59- follow_count_api_obj () {}
70+ follow_count_api_obj () = default ;
71+
6072 follow_count_api_obj (const std::string& acc,
6173 uint32_t followers,
6274 uint32_t followings,
@@ -82,13 +94,15 @@ namespace golos {
8294 using blog_authors_r = std::vector<std::pair<std::string, uint32_t >>;
8395 }}}
8496
85- FC_REFLECT ((golos::plugins::follow::feed_entry), (author)(permlink)(reblog_by)(reblog_on)(entry_id));
97+ FC_REFLECT ((golos::plugins::follow::feed_entry), (author)(permlink)(reblog_by)(reblog_entries)( reblog_on)(entry_id));
8698
87- FC_REFLECT ((golos::plugins::follow::comment_feed_entry), (comment)(reblog_by)(reblog_on)(entry_id));
99+ FC_REFLECT ((golos::plugins::follow::comment_feed_entry), (comment)(reblog_by)(reblog_entries)( reblog_on)(entry_id));
88100
89- FC_REFLECT ((golos::plugins::follow::blog_entry), (author)(permlink)(blog)(reblog_on)(entry_id));
101+ FC_REFLECT ((golos::plugins::follow::blog_entry), (author)(permlink)(blog)(reblog_on)(entry_id)
102+ (reblog_title)(reblog_body)(reblog_json_metadata));
90103
91- FC_REFLECT ((golos::plugins::follow::comment_blog_entry), (comment)(blog)(reblog_on)(entry_id));
104+ FC_REFLECT ((golos::plugins::follow::comment_blog_entry), (comment)(blog)(reblog_on)(entry_id)
105+ (reblog_title)(reblog_body)(reblog_json_metadata));
92106
93107FC_REFLECT ((golos::plugins::follow::account_reputation), (account)(reputation));
94108
0 commit comments