Skip to content

Commit

Permalink
bugfix embed visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeaux committed Apr 10, 2022
1 parent d753c60 commit 5ebb154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/frontend/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ exports.getEmbed = async function(req, res){

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

if(!upload){
Expand Down

0 comments on commit 5ebb154

Please sign in to comment.