fix(desktop): scope account access to owning client and extend identity verification
Backend CI / Backend (push) Successful in 14m18s
Backend CI / Backend (push) Successful in 14m18s
Restrict account tracking, probing, and health reporting to accounts owned by the current client (client_id match). Extend identity-match verification to bilibili, juejin, and smzdm so session validity is confirmed locally rather than deferred to remote health state. Server-side account view now uses stored client_id as authoritative owner instead of presence data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -214,6 +214,9 @@ async function fetchCurrentAccount(context: PublishAdapterContext): Promise<Smzd
|
||||
}
|
||||
}
|
||||
|
||||
return null
|
||||
|
||||
/*
|
||||
const cookieUid = normalizeSmzdmUid(
|
||||
await sessionCookieValue(context.session, 'smzdm.com', 'smzdm_id').catch(() => ''),
|
||||
)
|
||||
@@ -229,6 +232,7 @@ async function fetchCurrentAccount(context: PublishAdapterContext): Promise<Smzd
|
||||
uid: cookieUid,
|
||||
name: cookieName || `值友${cookieUid}`,
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
export function extractSmzdmArticleIdFromHref(value: string | null | undefined): string {
|
||||
|
||||
Reference in New Issue
Block a user