opting-out of the public timeline works now

This commit is contained in:
nilsding 2015-01-03 22:30:40 +01:00
parent 09b6a6bc10
commit 997430f909

View file

@ -2,7 +2,7 @@ class PublicController < ApplicationController
before_filter :authenticate_user!
def index
@timeline = Answer.all.reverse_order.paginate(page: params[:page])
@timeline = Answer.joins(:user).where(users: { privacy_allow_public_timeline: true }).all.reverse_order.paginate(page: params[:page])
respond_to do |format|
format.html
format.js