mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-01 22:07:12 +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()) {
|
if (anonymousSubscribedSubreddits != null && !anonymousSubscribedSubreddits.isEmpty()) {
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
for (SubscribedSubredditData s : anonymousSubscribedSubreddits) {
|
for (SubscribedSubredditData s : anonymousSubscribedSubreddits) {
|
||||||
stringBuilder.append(s).append("+");
|
stringBuilder.append(s.getName()).append("+");
|
||||||
}
|
}
|
||||||
if (stringBuilder.length() > 0) {
|
if (stringBuilder.length() > 0) {
|
||||||
stringBuilder.deleteCharAt(stringBuilder.length() - 1);
|
stringBuilder.deleteCharAt(stringBuilder.length() - 1);
|
||||||
|
@ -198,6 +198,7 @@ public class PostDataSource extends PageKeyedDataSource<String, Post> {
|
|||||||
loadMultiRedditPostsInitial(callback, null);
|
loadMultiRedditPostsInitial(callback, null);
|
||||||
break;
|
break;
|
||||||
case TYPE_ANONYMOUS_FRONT_PAGE:
|
case TYPE_ANONYMOUS_FRONT_PAGE:
|
||||||
|
loadAnonymousFrontPagePostsInitial(callback, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -235,6 +236,7 @@ public class PostDataSource extends PageKeyedDataSource<String, Post> {
|
|||||||
loadMultiRedditPostsAfter(params, callback, null);
|
loadMultiRedditPostsAfter(params, callback, null);
|
||||||
break;
|
break;
|
||||||
case TYPE_ANONYMOUS_FRONT_PAGE:
|
case TYPE_ANONYMOUS_FRONT_PAGE:
|
||||||
|
loadAnonymousFrontPagePostsAfter(params, callback, null);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user