|
|
@@ -1,5 +1,7 @@
|
|
|
+import { AttachmentType } from '~/server/interfaces/attachment';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
+
|
|
|
const url = require('url');
|
|
|
|
|
|
const logger = loggerFactory('growi:middleware:certify-shared-fire');
|
|
|
@@ -32,6 +34,12 @@ module.exports = (crowi) => {
|
|
|
return next();
|
|
|
}
|
|
|
|
|
|
+ const isBlandLogo = attachment.attachmentType === AttachmentType.BRAND_LOGO;
|
|
|
+ if (isBlandLogo) {
|
|
|
+ req.isSharedPage = true;
|
|
|
+ return next();
|
|
|
+ }
|
|
|
+
|
|
|
const shareLinks = await ShareLink.find({ relatedPage: attachment.page });
|
|
|
|
|
|
// If sharelinks don't exist, skip it
|