opting-out of the public timeline works now
This commit is contained in:
parent
09b6a6bc10
commit
997430f909
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue