Commit ea324f71 by Your Name

flagging done except returning abuse flaggers

parent fc127ddf
20566: Locked by 20566 at Sun Dec 02 07:30:57 -0500 2012
...@@ -15,4 +15,12 @@ cursor_positions: ...@@ -15,4 +15,12 @@ cursor_positions:
- :path: models/comment_thread.rb - :path: models/comment_thread.rb
:cursor_offset: 6463 :cursor_offset: 6463
:timestamp: 2012-12-02 08:32:40 -05:00 :timestamp: 2012-12-02 08:32:40 -05:00
- :path: api/flags.rb
:cursor_offset: 191
:timestamp: 2012-12-02 13:58:32 -05:00
- :path: lib/helpers.rb
:cursor_offset: 367
:timestamp: 2012-12-02 13:22:28 -05:00
:selection_offset: 358
:block_selection_mode: false
files_to_retain: 0 files_to_retain: 0
--- ---
open_files: open_files:
- .gitignore - api/flags.rb
- lib/helpers.rb
...@@ -4,4 +4,4 @@ bounds: ...@@ -4,4 +4,4 @@ bounds:
y: 24 y: 24
width: 1857 width: 1857
height: 1085 height: 1085
tree_width: 330 tree_width: 399
put "#{APIPREFIX}/comments/:comment_id/abuse_flags" do |comment_id| put "#{APIPREFIX}/threads/:thread_id/abuse_flags" do |thread_id|
flag_as_abuse comment flag_as_abuse thread
end end
put "#{APIPREFIX}/threads/:thread_id/abuse_unflags" do |thread_id| put "#{APIPREFIX}/threads/:thread_id/abuse_unflags" do |thread_id|
un_flag_as_abuse thread un_flag_as_abuse thread
end end
delete "#{APIPREFIX}/comments/:comment_id/abuse_flags" do |comment_id|
undo_flag_as_abuse comment
end
delete "#{APIPREFIX}/comments/:thread_id/abuse_flags" do |thread_id|
undo_flag_as_abuse thread
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