Skip to content

Commit

Permalink
fix: Don't set empty author array in subscription filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dluvian committed Aug 10, 2024
1 parent 5b76ca5 commit 98c7e97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class NostrFeedSubscriber(
val publicKeys = pubkeys.takeRandom(MAX_KEYS).map { PublicKey.fromHex(it) }
val pubkeysNoteFilter = Filter()
.kinds(kinds = textNoteAndRepostKinds)
.authors(authors = publicKeys)
.apply { if (publicKeys.isNotEmpty()) authors(authors = publicKeys) }
.since(timestamp = sinceTimestamp)
.until(timestamp = untilTimestamp)
.limitRestricted(limit = limit)
Expand Down

0 comments on commit 98c7e97

Please sign in to comment.