Downloads last posts from the author.
This commit is contained in:
@@ -80,6 +80,17 @@ object NostrAccountDataSource : NostrDataSource("AccountData") {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
fun createAccountLastPostsListFilter(): TypedFilter {
|
||||||
|
return TypedFilter(
|
||||||
|
types = COMMON_FEED_TYPES,
|
||||||
|
filter = JsonFilter(
|
||||||
|
authors = listOf(account.userProfile().pubkeyHex),
|
||||||
|
limit = 400
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
fun createNotificationFilter() = TypedFilter(
|
fun createNotificationFilter() = TypedFilter(
|
||||||
types = COMMON_FEED_TYPES,
|
types = COMMON_FEED_TYPES,
|
||||||
filter = JsonFilter(
|
filter = JsonFilter(
|
||||||
@@ -113,7 +124,8 @@ object NostrAccountDataSource : NostrDataSource("AccountData") {
|
|||||||
createNotificationFilter(),
|
createNotificationFilter(),
|
||||||
createAccountReportsFilter(),
|
createAccountReportsFilter(),
|
||||||
createAccountAcceptedAwardsFilter(),
|
createAccountAcceptedAwardsFilter(),
|
||||||
createAccountBookmarkListFilter()
|
createAccountBookmarkListFilter(),
|
||||||
|
createAccountLastPostsListFilter()
|
||||||
).ifEmpty { null }
|
).ifEmpty { null }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user