Bug Blog: “LastPosted” reveals non-public data about users, exploited to gain advantages

Yes we prefer the default to be “last time you posted anything to anyone in the forum”, we don’t think it should imply “last time you posted something in a public category visible to all people on the forum”

I worry changing this will cause wide spread confusion, I do not really want to touch this in core. Private categories mean that going down this rats nest means we will need different visible last_posted_at per user, this is just way too complex for almost no gain.

To amend this you are going to need a plugin that strategically disables:

I guess a plugin with this source will do the trick for you

require_dependency 'post_creator'
module MyHack
   def update_user_counts
      super
      @user.update_attributes(last_posted_at: Time.new('2000-01-01'))
   end
end

class PostCreator
   prepend MyHack
end
5 likes