mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
notifications without login
This commit is contained in:
parent
ffb01d2b6c
commit
6dad539aa9
@ -89,7 +89,10 @@ object NotificationHelper {
|
||||
val token = PreferenceHelper.getToken()
|
||||
runBlocking {
|
||||
val task = async {
|
||||
RetrofitInstance.authApi.getFeed(token)
|
||||
if (token != "") RetrofitInstance.authApi.getFeed(token)
|
||||
else RetrofitInstance.authApi.getUnauthenticatedFeed(
|
||||
SubscriptionHelper.getFormattedLocalSubscriptions()
|
||||
)
|
||||
}
|
||||
// fetch the users feed
|
||||
val videoFeed = try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user