update cover if shared via metadata
This commit is contained in:
parent
f43fc6a172
commit
a5fd6a3d09
1 changed files with 2 additions and 0 deletions
|
@ -357,6 +357,8 @@ class Item(db.Model):
|
||||||
user = state.user()
|
user = state.user()
|
||||||
if record and user in self.users:
|
if record and user in self.users:
|
||||||
Changelog.record_ts(user, self.modified, 'edititem', self.id, record)
|
Changelog.record_ts(user, self.modified, 'edititem', self.id, record)
|
||||||
|
if 'cover' in record:
|
||||||
|
self.update_icons()
|
||||||
|
|
||||||
def extract_preview(self):
|
def extract_preview(self):
|
||||||
path = self.get_path()
|
path = self.get_path()
|
||||||
|
|
Loading…
Reference in a new issue