mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:29:52 +01:00
opting-out of the public timeline works now
This commit is contained in:
parent
09b6a6bc10
commit
997430f909
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue