Skip to content

Commit 15a307e

Browse files
committed
fix: Clicking on Archive now brings you to the list of archived articles.
1 parent e4605f3 commit 15a307e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/core/api/linkding_api_client.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ class LinkdingApiClient {
4848
];
4949
final q = parts.join(' ').trim();
5050

51+
final endpoint =
52+
isArchived == true ? 'api/bookmarks/archived/' : 'api/bookmarks/';
53+
5154
final response = await _dio.get(
52-
'api/bookmarks/',
55+
endpoint,
5356
queryParameters: {
5457
if (q.isNotEmpty) 'q': q,
55-
if (isArchived != null) 'is_archived': isArchived ? 1 : 0,
56-
if (isRead != null) 'is_read': isRead ? 1 : 0,
5758
'limit': limit,
5859
'offset': offset,
5960
},

0 commit comments

Comments
 (0)