pl-fe: fix fetching when unauthenticated

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-09-12 18:45:27 +02:00
parent 03b42101aa
commit e0f55173f5

View File

@ -388,8 +388,6 @@ const unbookmarkFail = (statusId: string, error: unknown) => ({
const fetchReblogs = (statusId: string) =>
(dispatch: AppDispatch, getState: () => RootState) => {
if (!isLoggedIn(getState)) return;
dispatch(fetchReblogsRequest(statusId));
return getClient(getState()).statuses.getRebloggedBy(statusId).then(response => {
@ -445,8 +443,6 @@ const expandReblogsFail = (statusId: string, error: unknown) => ({
const fetchFavourites = (statusId: string) =>
(dispatch: AppDispatch, getState: () => RootState) => {
if (!isLoggedIn(getState)) return;
dispatch(fetchFavouritesRequest(statusId));
return getClient(getState()).statuses.getFavouritedBy(statusId).then(response => {
@ -502,8 +498,6 @@ const expandFavouritesFail = (statusId: string, error: unknown) => ({
const fetchDislikes = (statusId: string) =>
(dispatch: AppDispatch, getState: () => RootState) => {
if (!isLoggedIn(getState)) return;
dispatch(fetchDislikesRequest(statusId));
return getClient(getState).statuses.getDislikedBy(statusId).then(response => {