mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
implement getFeed
method
This commit is contained in:
parent
6a0e8ea7d8
commit
6d3c12c07b
@ -64,4 +64,17 @@ export default class Post {
|
|||||||
|
|
||||||
return request
|
return request
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static async getFeed({ trim, limit }) {
|
||||||
|
if (!Post.bridge) {
|
||||||
|
throw new Error("Bridge is not available")
|
||||||
|
}
|
||||||
|
|
||||||
|
const request = Post.bridge.get.feed(undefined, {
|
||||||
|
trim: trim ?? 0,
|
||||||
|
limit: limit ?? window.app.settings.get("feed_max_fetch"),
|
||||||
|
})
|
||||||
|
|
||||||
|
return request
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user