Skip to content

Commit 6cfec1b

Browse files
committed
feat: enable additional comment/search sort types for PieFed, improve image handling for PieFed, improve api and comment logic
1 parent acb51cc commit 6cfec1b

19 files changed

Lines changed: 2410 additions & 582 deletions

File tree

lib/src/core/enums/comment_sort_type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ enum CommentSortType {
55
top('Top'),
66
new_('New'),
77
old('Old'),
8-
controversial('Controversial', platform: ThreadiversePlatform.lemmy);
8+
controversial('Controversial');
99

1010
/// The value of the sort type for the API.
1111
final String value;

lib/src/core/enums/feed_list_type.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ enum FeedListType {
55
local('Local'),
66
subscribed('Subscribed'),
77
moderatorView('ModeratorView'),
8+
moderating('Moderating', platform: ThreadiversePlatform.piefed),
89
popular('Popular', platform: ThreadiversePlatform.piefed);
910

1011
/// The value of the enum. This corresponds to the value used in the request.

lib/src/core/enums/meta_search_type.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import 'package:thunder/l10n/generated/app_localizations.dart';
33
import 'package:thunder/src/core/enums/threadiverse_platform.dart';
44

55
enum MetaSearchType {
6-
all(searchType: 'All'),
7-
comments(searchType: 'Comments'),
8-
posts(searchType: 'Posts'),
9-
communities(searchType: 'Communities'),
10-
users(searchType: 'Users', platform: ThreadiversePlatform.lemmy),
11-
url(searchType: 'Url', platform: ThreadiversePlatform.lemmy),
6+
all(searchType: 'All'),
7+
comments(searchType: 'Comments'),
8+
posts(searchType: 'Posts'),
9+
communities(searchType: 'Communities'),
10+
users(searchType: 'Users'),
11+
url(searchType: 'Url'),
1212
instances(),
1313
;
1414

0 commit comments

Comments
 (0)