Per-user YouTube sync (own channel per user) #7
Loading…
Reference in a new issue
No description provided.
Delete branch "multiuser"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Converts the plugin from a single admin-managed YouTube channel to per-user sync: each PeerTube user connects their own YouTube channel from a new YouTube sync page (
/my-account/p/peeryou) and their own published videos sync to it.What changed
peeryou-tokens-<userId>) and settings overrides (peeryou-settings-<userId>); pending/done queue entries stamped withuserId;migrate()discards the legacy instance-widepeeryou-tokenson upgrade (users must reconnect).userIdlookup; skips unconnected users' jobs without dropping them./api/v1/users/me/videoswith the caller's auth forwarded; POST validates the requested video ids against the caller's own eligible set (no cross-user uploads).ensureAdmin→ensureUser; new GET/POST/user-settings(merge-on-save so clearing one override preserves the rest) and POST/disconnect.my-accountscope client (connect/disconnect, per-user settings with diff-on-save, backfill); admin-settings client removed.Test plan
npm test— 16 suites / 153 tests passnpm run build— both bundles producednpm pack --dry-run— ships onlydist/,src/,main.js,README.md