๐Ÿ”— Redirect Bluesky links to your preferred client
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Check for "auth/sign_in" in URL

+6 -1
+6 -1
shared/src/main/java/dev/zwander/shared/RedirectActivity.kt
··· 1 1 package dev.zwander.shared 2 2 3 3 import android.content.Intent 4 + import android.net.Uri 4 5 import android.util.Log 5 6 import androidx.compose.foundation.layout.Box 6 7 import androidx.compose.foundation.layout.Spacer ··· 109 110 LinkSheetConnector.getLinkSheetReferrer(intent) 110 111 } ?: referrer 111 112 113 + val parsedUrl = url?.let { Uri.parse(it) } 114 + 112 115 when { 113 - url.isNullOrBlank() || url.contains("oauth/authorize") -> launchInBrowser() 116 + url.isNullOrBlank() || 117 + url.contains("oauth/authorize") || 118 + parsedUrl?.path?.startsWith("auth/sign_in") == true -> launchInBrowser() 114 119 prefs.openMediaInBrowser.currentValue(this) && isUrlMedia(url) -> launchInBrowser() 115 120 else -> { 116 121 prefs.selectedApp.currentValue(this).run {