Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: File privacy #845

Merged
merged 7 commits into from
Aug 7, 2021
Prev Previous commit
adding forgotten privacy update upon save copy and add to collection
  • Loading branch information
martinalong committed Aug 7, 2021
commit ee410ba042deb335b4e264a6eedfbfeabb4681a1
1 change: 1 addition & 0 deletions pages/api/data/save-copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export default async (req, res) => {
}

if (slate?.isPublic) {
Utilities.addToPublicCollectionUpdatePrivacy({ files: filesToAddToSlate });
SearchManager.updateFile(createdFiles, "ADD");
}
ViewerManager.hydratePartial(id, { library: true, slates: slate ? true : false });
Expand Down