Skip to content

Commit

Permalink
🐛 Fixed feed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Aug 1, 2023
1 parent 4cdceab commit 35c58a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
"type": "dart",
"toolArgs": ["--web-port=8080"]
}
],
"env": { }
]
}
6 changes: 3 additions & 3 deletions lib/Components/PostComponents/post_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class _PostListState extends State<PostList> {

Future<void> _fetchPage(String pageKey) async {
try {
OrderedCollectionPage orderedCollectionPage;
OrderedCollectionPage<Activity> orderedCollectionPage;

if (widget.isInbox) {
InboxAPI inboxProvider = InboxAPI();
orderedCollectionPage = await inboxProvider.getPosts(pageKey);
orderedCollectionPage = await inboxProvider.getPosts<Activity>(pageKey);
} else {
OutboxAPI provider = OutboxAPI();
orderedCollectionPage = await provider.getPosts(pageKey);
orderedCollectionPage = await provider.getPosts<Activity>(pageKey);
}

List<Activity<Post>> activities = [];
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
activitypub: ^1.2.5
activitypub: ^1.2.9
fedodo_general: ^1.8.3

flutter_html: ^3.0.0-beta.1
Expand Down

0 comments on commit 35c58a9

Please sign in to comment.