Skip to content

Commit

Permalink
🔊 Updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Jul 20, 2023
1 parent c0b9085 commit 4cdceab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/Components/PostComponents/post_list.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:activitypub/activitypub.dart';
import 'package:fedodo_general/globals/general.dart';
import 'package:flutter/material.dart';
import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart';
import '../../Views/PostViews/post.dart';
Expand Down Expand Up @@ -59,7 +60,7 @@ class _PostListState extends State<PostList> {
PostAPI postAPI = PostAPI();
Post? post = await postAPI.getPost(activity.object);

if (post == null){
if (post == null) {
continue;
}

Expand All @@ -85,7 +86,7 @@ class _PostListState extends State<PostList> {
PostAPI postAPI = PostAPI();
Post? post = await postAPI.getPost(activity.object);

if (post == null){
if (post == null) {
continue;
}

Expand Down Expand Up @@ -115,6 +116,7 @@ class _PostListState extends State<PostList> {
_paginationController.appendPage(activities, nextPageKey);
}
} catch (error) {
General.logger.e(error, "An error occurred in PostList.");
_paginationController.error = error;
}
}
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.0
activitypub: ^1.2.5
fedodo_general: ^1.8.3

flutter_html: ^3.0.0-beta.1
Expand Down

0 comments on commit 4cdceab

Please sign in to comment.