Shuffle post

This commit is contained in:
2025-03-09 00:49:13 +08:00
parent 25550ba197
commit d654c162e3
8 changed files with 153 additions and 6 deletions

View File

@ -155,9 +155,12 @@ class SnPostContentProvider {
String? realm,
String? channel,
bool isDraft = false,
bool isShuffle = false,
}) async {
final resp = await _sn.client.get(
'/cgi/co/posts${isDraft ? '/drafts' : ''}',
isShuffle
? '/cgi/co/recommendations/shuffle'
: '/cgi/co/posts${isDraft ? '/drafts' : ''}',
queryParameters: {
'take': take,
'offset': offset,