reset sharemetadata on removing file
This commit is contained in:
parent
f8651c123f
commit
ab959a4728
1 changed files with 2 additions and 0 deletions
|
@ -511,6 +511,8 @@ class Item(db.Model):
|
|||
self.users.remove(user)
|
||||
for l in self.lists.filter_by(user_id=user.id):
|
||||
l.items.remove(self)
|
||||
if self.meta.get('sharemetadata'):
|
||||
self.meta['sharemetadata'] = False
|
||||
if not self.users:
|
||||
self.delete()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue