From db561e0c90efd406e96bb0a31786aea8af312b25 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Sun, 5 Jan 2025 02:58:35 +0300 Subject: [PATCH] fix to_abstract_post methods' names --- manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager.cpp b/manager.cpp index 6ed908a..3a1fe40 100644 --- a/manager.cpp +++ b/manager.cpp @@ -461,11 +461,11 @@ bool RepostManager::drop_posts_older_than(std::vector &posts, long } } -std::optional to_abstract_post(const vk::Post &post, int sourceIndex) { +std::optional RepostManager::to_abstract_post(const vk::Post &post, int sourceIndex) { return { AbstractPost(posts::SRC_VK, sourceIndex, post.id, post.date, post.text) }; } -std::optional to_abstract_post(const td_api::message &post, int sourceIndex) { +std::optional RepostManager::to_abstract_post(const td_api::message &post, int sourceIndex) { if (post.content_->get_id() == td_api::messageText::ID) { auto &content = (td_api::messageText&) *post.content_; return { AbstractPost(posts::SRC_TELEGRAM, sourceIndex, post.id_, post.date_, content.text_->text_) };