diff --git a/hive/indexer/follow.py b/hive/indexer/follow.py index 7d5a0d55e7fb2ddb24ba9a942c45f6345268a5cd..3c66e56fcf20a98ccf966bde4d6450c5732447ea 100644 --- a/hive/indexer/follow.py +++ b/hive/indexer/follow.py @@ -1,12 +1,9 @@ """Handles follow operations.""" import logging -from time import perf_counter as perf -from json import dumps from funcy.seqs import first from hive.db.adapter import Db -from hive.db.db_state import DbState from hive.utils.misc import chunks from hive.indexer.accounts import Accounts @@ -74,7 +71,7 @@ class Follow(DbAdapterHolder): @classmethod def _validated_op(cls, account, op, date): """Validate and normalize the operation.""" - if ( not 'what' in op + if (not 'what' in op or not isinstance(op['what'], list) or not 'follower' in op or not 'following' in op):