mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Can get older posts on latest posts page
This commit is contained in:
@ -39,12 +39,13 @@ const _APIUserAccessMap = {
|
||||
class PostsHelper {
|
||||
/// Get the list of latest posts. Return the list of posts or null in case of
|
||||
/// failure
|
||||
Future<PostsList> getLatest() async {
|
||||
Future<PostsList> getLatest({int from = 0}) async {
|
||||
final response = await APIRequest(
|
||||
uri: "posts/get_latest",
|
||||
needLogin: true,
|
||||
args: {
|
||||
"include_groups": true.toString()
|
||||
"include_groups": true.toString(),
|
||||
"startFrom": from.toString(),
|
||||
}
|
||||
).exec();
|
||||
|
||||
|
Reference in New Issue
Block a user