diff options
author | Chocobozzz <me@florianbigard.com> | 2020-04-20 14:05:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-04-20 14:05:52 +0200 |
commit | 2fd59d7d89d1c389446ee67838c821e2622fc8ca (patch) | |
tree | 3f3e1ad83aacee895c7ff096fe54c344df8a1e06 /server/initializers | |
parent | 1f41ca656638bda3aec8ca1c9e99adde3c0f9fcb (diff) | |
download | PeerTube-2fd59d7d89d1c389446ee67838c821e2622fc8ca.tar.gz PeerTube-2fd59d7d89d1c389446ee67838c821e2622fc8ca.tar.zst PeerTube-2fd59d7d89d1c389446ee67838c821e2622fc8ca.zip |
Add ability to sort by originallyPublishedAt
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index e801e282a..bc6c58b06 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -59,9 +59,9 @@ const SORTABLE_COLUMNS = { | |||
59 | FOLLOWERS: [ 'createdAt', 'state', 'score' ], | 59 | FOLLOWERS: [ 'createdAt', 'state', 'score' ], |
60 | FOLLOWING: [ 'createdAt', 'redundancyAllowed', 'state' ], | 60 | FOLLOWING: [ 'createdAt', 'redundancyAllowed', 'state' ], |
61 | 61 | ||
62 | VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes', 'trending' ], | 62 | VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'trending' ], |
63 | 63 | ||
64 | VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes', 'match' ], | 64 | VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'match' ], |
65 | VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName', 'createdAt' ], | 65 | VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName', 'createdAt' ], |
66 | 66 | ||
67 | ACCOUNTS_BLOCKLIST: [ 'createdAt' ], | 67 | ACCOUNTS_BLOCKLIST: [ 'createdAt' ], |