]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/constants.js
Allow to sort by likes
[github/Chocobozzz/PeerTube.git] / server / initializers / constants.js
index 16a2dd320767b872b54ff6b11e4b9b07ff569e8d..f9247e9450cab909e9b85669e83ccc2df54c69ea 100644 (file)
@@ -24,7 +24,7 @@ const SEARCHABLE_COLUMNS = {
 const SORTABLE_COLUMNS = {
   USERS: [ 'id', 'username', 'createdAt' ],
   VIDEO_ABUSES: [ 'id', 'createdAt' ],
-  VIDEOS: [ 'name', 'duration', 'createdAt', 'views' ]
+  VIDEOS: [ 'name', 'duration', 'createdAt', 'views', 'likes' ]
 }
 
 const OAUTH_LIFETIME = {