MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / shouldThisChannelBeAnonymous

Function shouldThisChannelBeAnonymous

apps/web/services/channels/index.ts:636–650  ·  view source on GitHub ↗
(channelId: string)

Source from the content-addressed store, hash-verified

634}
635
636export async function shouldThisChannelBeAnonymous(channelId: string) {
637 return await prisma.accounts
638 .findFirst({
639 where: {
640 channels: {
641 some: { id: channelId },
642 },
643 },
644 select: { anonymize: true, anonymizeUsers: true },
645 })
646 .then((account) => ({
647 anonymize: account?.anonymize,
648 anonymizeUsers: account?.anonymizeUsers,
649 }));
650}
651
652export async function hideEmptyChannels(accountId: string) {
653 const channels = await prisma.channels.findMany({

Callers 1

channelNextPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected