implement getExplorePosts

This commit is contained in:
srgooglo 2022-11-14 01:29:01 +00:00
parent 53876ced69
commit 28ca8a633b

View File

@ -51,4 +51,17 @@ export default class Post {
return request return request
} }
static async getExplorePosts({ trim, limit }) {
if (!Post.bridge) {
throw new Error("Bridge is not available")
}
const request = Post.bridge.get.explorePosts(undefined, {
trim: trim ?? 0,
limit: limit ?? window.app.settings.get("feed_max_fetch"),
})
return request
}
} }