mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-04-12 05:39:16 +02:00
check more follower lists
This commit is contained in:
parent
17d2bfca3c
commit
b1202e915e
@ -102,7 +102,7 @@ class DicoverContentCurrentlyPopularFollowers(DVMTaskInterface):
|
||||
cli.connect()
|
||||
|
||||
user = PublicKey.parse(options["user"])
|
||||
followers_filter = Filter().author(user).kinds([Kind(3)]).limit(1)
|
||||
followers_filter = Filter().author(user).kinds([Kind(3)])
|
||||
followers = cli.get_events_of([followers_filter], timedelta(seconds=self.dvm_config.RELAY_TIMEOUT))
|
||||
print(followers)
|
||||
|
||||
|
@ -80,9 +80,10 @@ class DiscoverInactiveFollows(DVMTaskInterface):
|
||||
options = DVMTaskInterface.set_options(request_form)
|
||||
step = 20
|
||||
|
||||
followers_filter = Filter().author(PublicKey.from_hex(options["user"])).kind(Kind(3)).limit(1)
|
||||
followers_filter = Filter().author(PublicKey.from_hex(options["user"])).kind(Kind(3))
|
||||
followers = cli.get_events_of([followers_filter], timedelta(seconds=self.dvm_config.RELAY_TIMEOUT))
|
||||
|
||||
|
||||
if len(followers) > 0:
|
||||
result_list = []
|
||||
newest = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user