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
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ class PublicController < ApplicationController
before_filter :authenticate_user! before_filter :authenticate_user!
def index 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| respond_to do |format|
format.html format.html
format.js format.js