Skip to content

Commit 5ebb154

Browse files
committed
bugfix embed visibility
1 parent d753c60 commit 5ebb154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/frontend/public.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ exports.getEmbed = async function(req, res){
217217

218218
let upload = await Upload.findOne({
219219
uniqueTag,
220-
visibility: { $ne: 'removed' }
220+
visibility: { $in: ['public', 'unlisted'] }
221221
}).populate({path: 'uploader', populate: {path: ''}}).exec();
222222

223223
if(!upload){

0 commit comments

Comments
 (0)