mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added order:file_size
This commit is contained in:
@ -64,6 +64,7 @@ Command | Description
|
|||||||
[search]order:tags[/search] | with most tags | `tag`, `tagcount`, `tag_count` |
|
[search]order:tags[/search] | with most tags | `tag`, `tagcount`, `tag_count` |
|
||||||
[search]order:commentdate[/search] | recently commented | `comment_date` |
|
[search]order:commentdate[/search] | recently commented | `comment_date` |
|
||||||
[search]order:favdate[/search] | recently added to favorites | `fav_date` |
|
[search]order:favdate[/search] | recently added to favorites | `fav_date` |
|
||||||
|
[search]order:filesize[/search] | largest files first | `file_size` |
|
||||||
|
|
||||||
As shown with [search]-order:date[/search], any of them can be reversed in the same way as negating other tags: by placing a dash before the tag.
|
As shown with [search]-order:date[/search], any of them can be reversed in the same way as negating other tags: by placing a dash before the tag.
|
||||||
|
|
||||||
|
@ -244,6 +244,9 @@ class PostSearchParser extends AbstractSearchParser
|
|||||||
elseif (in_array($orderByString, ['favdate', 'fav_date']))
|
elseif (in_array($orderByString, ['favdate', 'fav_date']))
|
||||||
$orderColumn = 'post.fav_date';
|
$orderColumn = 'post.fav_date';
|
||||||
|
|
||||||
|
elseif (in_array($orderByString, ['filesize', 'file_size']))
|
||||||
|
$orderColumn = 'post.file_size';
|
||||||
|
|
||||||
elseif ($orderByString == 'random')
|
elseif ($orderByString == 'random')
|
||||||
{
|
{
|
||||||
//seeding works like this: if you visit anything
|
//seeding works like this: if you visit anything
|
||||||
|
Reference in New Issue
Block a user