Profile card

This commit is contained in:
2025-06-13 01:06:37 +08:00
parent 0d6424e155
commit 6e74cf3a93
4 changed files with 145 additions and 9 deletions

View File

@ -193,10 +193,7 @@ class ActivityListNotifier extends _$ActivityListNotifier
final response = await client.get(
'/activities',
queryParameters: {
if (cursor != null) 'reading_cursor': cursor,
'take': take,
},
queryParameters: {if (cursor != null) 'cursor': cursor, 'take': take},
);
final List<SnActivity> items =
@ -206,7 +203,12 @@ class ActivityListNotifier extends _$ActivityListNotifier
final hasMore = (items.firstOrNull?.type ?? 'empty') != 'empty';
final nextCursor =
items.map((x) => x.createdAt).lastOrNull?.toIso8601String().toString();
items
.map((x) => x.createdAt)
.lastOrNull
?.toUtc()
.toIso8601String()
.toString();
return CursorPagingData(
items: items,