Commit c80d09d0 by Kevin Chugh

remove old code

parent b9a8f441
......@@ -186,16 +186,16 @@ helpers do
#now we have to walk through the flagged threads and comments and add the user to the
#abuse flaggers so that the flag appears for them.
#this will allow moderators to see all flagged posts
comment_threads.each do |t|
if t.abuse_flaggers and t.abuse_flaggers.count > 0
t.abuse_flaggers << params["user_id"]
end
t.comments.each do |c|
if c.abuse_flaggers and c.abuse_flaggers.count > 0
c.abuse_flaggers << params["user_id"]
end
end
end
#comment_threads.each do |t|
# if t.abuse_flaggers and t.abuse_flaggers.count > 0
# t.abuse_flaggers << params["user_id"]
# end
# t.comments.each do |c|
# if c.abuse_flaggers and c.abuse_flaggers.count > 0
# c.abuse_flaggers << params["user_id"]
# end
# end
#end
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment