diff --git a/packages/api/src/controllers/playback.ts b/packages/api/src/controllers/playback.ts index 26f8f86178..161a1dc3c2 100644 --- a/packages/api/src/controllers/playback.ts +++ b/packages/api/src/controllers/playback.ts @@ -345,10 +345,7 @@ app.get("/:id", async (req, res) => { let ingest = ingests[0].base; let { id } = req.params; - if ( - (id === "1ba7nrr34rbjl4bb" || req.user?.directPlayback) && - ingests[0].baseDirect - ) { + if (req.user?.directPlayback && ingests[0].baseDirect) { ingest = ingests[0].baseDirect; } diff --git a/packages/api/src/controllers/stream.ts b/packages/api/src/controllers/stream.ts index f8e05b70b2..c503dab869 100644 --- a/packages/api/src/controllers/stream.ts +++ b/packages/api/src/controllers/stream.ts @@ -1038,6 +1038,13 @@ const pullStreamKeyAccessors: Record = { "pull.source": ["pull", "source"], }; +const testCreatorIds: string[] = [ + "73846_104901225_104901225", + "73846_116005487_116003843", + "73846_116003843_116003843", + "73846_115939837_115939837", +]; + app.put( "/pull", authorizer({}), @@ -1139,6 +1146,9 @@ app.put( pullRegion, ...payload, }; + if (testCreatorIds.includes(stream.creatorId?.value)) { + stream.profiles = oldStream.profiles; + } await db.stream.replace(stream); // read from DB again to keep exactly what got saved stream = await db.stream.get(stream.id, { useReplica: false });