feat!: disable stream notifications and use cachet

This commit is contained in:
2025-06-14 00:10:09 +02:00
parent 6218d328cd
commit 10c10b6d2a
3 changed files with 6 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ export async function GET(request: Request): Promise<Response> {
data: {
id: userId,
slack_id: slackUser.sub,
pfpUrl: slackUser.picture,
pfpUrl: `https://cachet.dunkirk.sh/users/${slackUser.sub}/r`,
hasOnboarded: false,
},
});

View File

@@ -0,0 +1,4 @@
-- AlterTable
ALTER TABLE "Follow" ALTER COLUMN "notifyStream" SET DEFAULT false;
UPDATE "Follow" SET "notifyStream" = false;

View File

@@ -91,7 +91,7 @@ model Follow {
channel Channel @relation("ChannelFollowers", fields: [channelId], references: [id], onDelete: Cascade)
channelId String
notifyStream Boolean @default(true)
notifyStream Boolean @default(false)
@@unique([userId, channelId])
@@index([userId])