diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index b187881d..7076ca81 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -39,7 +39,7 @@ class CommentsController < ApplicationController #add names to comments @comments.map{|comment| comment.username = Xikolo::UserClient.get(comment.user_id.to_s)[:display_name]} else - @comments = Comment.where(file_id: -1) #we need an empty relation here + @comments = Comment.all.limit(0) #we need an empty relation here end authorize! end