fix(files_db): add conditions for file size and duration
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user