mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
implement getSavedPosts
method
This commit is contained in:
parent
08a237affd
commit
908f691625
@ -77,4 +77,17 @@ export default class Post {
|
||||
|
||||
return request
|
||||
}
|
||||
|
||||
static async getSavedPosts({ trim, limit }) {
|
||||
if (!Post.bridge) {
|
||||
throw new Error("Bridge is not available")
|
||||
}
|
||||
|
||||
const request = Post.bridge.get.savedPosts(undefined, {
|
||||
trim: trim ?? 0,
|
||||
limit: limit ?? window.app.settings.get("feed_max_fetch"),
|
||||
})
|
||||
|
||||
return request
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user