From a2ea557da92055b22264c6244d7dd7c4af927481 Mon Sep 17 00:00:00 2001
From: Bartek Wrona <wrona@syncad.com>
Date: Tue, 4 Oct 2022 16:09:56 +0200
Subject: [PATCH] get_follow_count switched into condeser_api (instead of
 deprecated follow_api)

---
 beem/account.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/beem/account.py b/beem/account.py
index c6610be..80d7d7d 100644
--- a/beem/account.py
+++ b/beem/account.py
@@ -1007,13 +1007,8 @@ class Account(BlockchainObject):
         if not self.blockchain.is_connected():
             raise OfflineHasNoRPCException("No RPC available in offline mode!")
         self.blockchain.rpc.set_next_node_on_empty_reply(False)
-        if self.blockchain.rpc.get_use_appbase():
-            try:
-                return self.blockchain.rpc.get_follow_count({'account': account}, api='follow')
-            except:
-                return self.blockchain.rpc.get_follow_count(account, api='condenser')
-        else:
-            return self.blockchain.rpc.get_follow_count(account, api='follow')
+
+        return self.blockchain.rpc.get_follow_count(account, api='condenser')
 
     def get_followers(self, raw_name_list=True, limit=100):
         """ Returns the account followers as list
-- 
GitLab