fsdfsd
This commit is contained in:
parent
8a11412735
commit
9f268e767b
6 changed files with 22 additions and 35 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue