Skip to content

Commit

Permalink
fix: Set authors in feed filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dluvian committed Aug 29, 2024
1 parent c73d8cb commit 5085c40
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ class FeedSubscriber(
val publicKeys = pubkeys.takeRandom(MAX_KEYS).map { PublicKey.fromHex(it) }
val pubkeysNoteFilter = Filter()
.kinds(kinds = textNoteAndRepostKinds)
.apply { if (publicKeys.isNotEmpty()) authors(authors = publicKeys) }
.let {
if (publicKeys.isNotEmpty()) it.authors(authors = publicKeys)
else it
}
.since(timestamp = sinceTimestamp)
.until(timestamp = untilTimestamp)
.limitRestricted(limit = limit)
Expand Down

0 comments on commit 5085c40

Please sign in to comment.