Make public favorites optional (Akkoma/Sharkey.NET?)

This commit is contained in:
Henry Jameson 2025-06-16 15:31:21 +03:00
commit ac8519c166
3 changed files with 6 additions and 1 deletions

View file

@ -63,6 +63,10 @@ const fetchAndUpdate = ({
return apiService.fetchTimeline(args)
.then(response => {
if (response.errors) {
if (timeline === 'favorites') {
rootState.instance.pleromaPublicFavouritesAvailable = false
return
}
throw new Error(`${response.status} ${response.statusText}`)
}