mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-01 13:57:10 +01:00
Fix posts not loading in anonymous front page.
This commit is contained in:
parent
e43adf966c
commit
231530c6eb
@ -44,7 +44,7 @@ public class FetchPostFilterReadPostsAndConcatenatedSubredditNames {
|
||||
if (anonymousSubscribedSubreddits != null && !anonymousSubscribedSubreddits.isEmpty()) {
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
for (SubscribedSubredditData s : anonymousSubscribedSubreddits) {
|
||||
stringBuilder.append(s).append("+");
|
||||
stringBuilder.append(s.getName()).append("+");
|
||||
}
|
||||
if (stringBuilder.length() > 0) {
|
||||
stringBuilder.deleteCharAt(stringBuilder.length() - 1);
|
||||
|
@ -198,6 +198,7 @@ public class PostDataSource extends PageKeyedDataSource<String, Post> {
|
||||
loadMultiRedditPostsInitial(callback, null);
|
||||
break;
|
||||
case TYPE_ANONYMOUS_FRONT_PAGE:
|
||||
loadAnonymousFrontPagePostsInitial(callback, null);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -235,6 +236,7 @@ public class PostDataSource extends PageKeyedDataSource<String, Post> {
|
||||
loadMultiRedditPostsAfter(params, callback, null);
|
||||
break;
|
||||
case TYPE_ANONYMOUS_FRONT_PAGE:
|
||||
loadAnonymousFrontPagePostsAfter(params, callback, null);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user