This commit is contained in:
Aevann1 2021-12-18 05:13:46 +02:00
parent 8a11412735
commit 9f268e767b
6 changed files with 22 additions and 35 deletions

View file

@ -397,6 +397,11 @@ class Submission(Base):
return title
@property
@lazy
def is_video(self):
return self.url and any((self.url.lower().endswith(x) for x in ('.mp4','.webm','.mov')))
@property
@lazy
def is_image(self):