[APP-1784] Proper fix for Live Now status not showing (#9779)

* Be sure to validate if actor is allowed to be live on certain domain

* Rename for clarity

* Memoize
This commit is contained in:
Eric Bailey
2026-01-27 16:44:27 -06:00
committed by GitHub
parent 26605ee730
commit 39e7132fd8
4 changed files with 38 additions and 21 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ function DialogInner({profile}: {profile: bsky.profile.AnyProfileView}) {
const tick = useTickEveryMinute()
const liveNowConfig = useLiveNowConfig()
const {formatted: allowedServices} = getLiveServiceNames(
liveNowConfig.allowedDomains,
liveNowConfig.currentAccountAllowedHosts,
)
const time = useCallback(
+4 -2
View File
@@ -31,8 +31,10 @@ export function useLiveLinkMetaQuery(url: string | null) {
queryFn: async () => {
if (!url) return undefined
const urlp = new URL(url)
if (!liveNowConfig.allowedDomains.has(urlp.hostname)) {
const {formatted} = getLiveServiceNames(liveNowConfig.allowedDomains)
if (!liveNowConfig.currentAccountAllowedHosts.has(urlp.hostname)) {
const {formatted} = getLiveServiceNames(
liveNowConfig.currentAccountAllowedHosts,
)
throw new Error(
_(
msg`This service is not supported while the Live feature is in beta. Allowed services: ${formatted}.`,