mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
Fix Posts not opening for anon users
This commit is contained in:
parent
d48c72924a
commit
c3de020f0e
@ -207,8 +207,10 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
||||
if (opening) return;
|
||||
if (TextUtils.isEmpty(feedModel.getProfileModel().getUsername())) {
|
||||
opening = true;
|
||||
new PostFetcher(feedModel.getShortCode(), newFeedModel -> openPostDialog(newFeedModel, profilePicView, mainPostImage, position))
|
||||
.execute();
|
||||
new PostFetcher(feedModel.getShortCode(), newFeedModel -> {
|
||||
opening = false;
|
||||
openPostDialog(newFeedModel, profilePicView, mainPostImage, position);
|
||||
}).execute();
|
||||
return;
|
||||
}
|
||||
opening = true;
|
||||
|
@ -205,8 +205,10 @@ public class LocationFragment extends Fragment implements SwipeRefreshLayout.OnR
|
||||
if (opening) return;
|
||||
if (TextUtils.isEmpty(feedModel.getProfileModel().getUsername())) {
|
||||
opening = true;
|
||||
new PostFetcher(feedModel.getShortCode(), newFeedModel -> openPostDialog(newFeedModel, profilePicView, mainPostImage, position))
|
||||
.execute();
|
||||
new PostFetcher(feedModel.getShortCode(), newFeedModel -> {
|
||||
opening = false;
|
||||
openPostDialog(newFeedModel, profilePicView, mainPostImage, position);
|
||||
}).execute();
|
||||
return;
|
||||
}
|
||||
opening = true;
|
||||
|
Loading…
Reference in New Issue
Block a user