diff --git a/lib/providers/post.dart b/lib/providers/post.dart index d2c2867..6ad01dc 100644 --- a/lib/providers/post.dart +++ b/lib/providers/post.dart @@ -33,11 +33,14 @@ class SnPostContentProvider { } Future> getFeed({int take = 20, DateTime? cursor}) async { - final resp = - await _sn.client.get('/cgi/co/recommendations/feed', queryParameters: { - 'take': take, - if (cursor != null) 'cursor': cursor.toUtc().millisecondsSinceEpoch, - }); + final resp = await _sn.client.get( + '/cgi/co/recommendations/feed', + queryParameters: { + 'take': take, + if (cursor != null) 'cursor': cursor.toUtc().millisecondsSinceEpoch, + }, + options: Options(headers: {'X-API-Version': '2'}), + ); final List out = List.from(resp.data.map((ele) => SnFeedEntry.fromJson(ele)));