fix(files_db): add conditions for file size and duration

This commit is contained in:
Prateek Sunal
2025-04-26 02:11:46 +05:30
parent 500a9481cb
commit 106338508d

View File

@@ -1685,6 +1685,8 @@ class FilesDB with SqlDbBase {
AND $columnUploadedFileID != -1
AND $columnOwnerID = $userID
AND $columnLocalID IS NOT NULL
AND ($columnFileSize IS NULL OR $columnFileSize <= 524288000)
AND ($columnDuration IS NULL OR $columnDuration <= 1)
ORDER BY $columnCreationTime DESC
''',
[getInt(fileType), beginDate.microsecondsSinceEpoch],