Deactivated users should not show up in individual feeds
Reported by Michael Hartl | May 16th, 2008 @ 03:21 PM | in Miscellaneous polish
They are already filtered out of the global feed, but doing it for individual feeds is trickier.
Comments and changes to this ticket
-
Jorge Dias June 6th, 2008 @ 07:25 PM
- → Assigned user changed from to Jorge Dias
Hi Michael, I made a fix for this but haven't commited it yet. Wanted to check out first if you like the approach
I modified the person model to look like this
has_many :activities, :through => :feeds, :order => 'activities.created_at DESC',
:limit => FEED_SIZE,
:conditions => ["people.deactivated = ?", false],
:include => :person
I made the include because I didn't want write sql. =)
If you like it I can commit it an make the tests.
Let me know what you think...
-
-
-
Michael Hartl June 17th, 2008 @ 04:39 PM
- → Milestone changed from to Miscellaneous polish
-
Michael Hartl September 15th, 2008 @ 04:18 PM
- → State changed from new to resolved
- → Tag cleared.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
