diff --git a/packages/backend/src/server/api/endpoints/drive/folders/update.ts b/packages/backend/src/server/api/endpoints/drive/folders/update.ts index cc45bd8c58..2374c754f7 100644 --- a/packages/backend/src/server/api/endpoints/drive/folders/update.ts +++ b/packages/backend/src/server/api/endpoints/drive/folders/update.ts @@ -96,7 +96,7 @@ export default class extends Endpoint { // eslint- // Check if the circular reference will occur const checkCircle = async (folderId: string, limit: number = 32): Promise => { if (limit <= 0) { - return false; + return true; } const folder2 = await this.driveFoldersRepository.findOneByOrFail({ id: folderId, diff --git a/packages/backend/src/server/csp.ts b/packages/backend/src/server/csp.ts index aeee4eab3a..3e1e7962b8 100644 --- a/packages/backend/src/server/csp.ts +++ b/packages/backend/src/server/csp.ts @@ -30,6 +30,7 @@ export function generateCSP(hashedMap: Map, options: { [ '\'self\'', 'data:', + 'blob:', // 'https://avatars.githubusercontent.com', // uncomment this for contributor avatars to work options.mediaProxy ].filter(Boolean)],