Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
85979fc9
Commit
85979fc9
authored
Apr 25, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove deprecated code
parent
c80d09d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
lib/helpers.rb
+0
-15
No files found.
lib/helpers.rb
View file @
85979fc9
...
@@ -183,21 +183,6 @@ helpers do
...
@@ -183,21 +183,6 @@ helpers do
Sinatra
::
Application
.
cache
.
set
(
memcached_key
,
cached_results
,
CommentService
.
config
[
:cache_timeout
][
:threads_query
].
to_i
)
Sinatra
::
Application
.
cache
.
set
(
memcached_key
,
cached_results
,
CommentService
.
config
[
:cache_timeout
][
:threads_query
].
to_i
)
end
end
#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
{
{
collection:
paged_comment_threads
.
map
{
|
t
|
t
.
to_hash
(
recursive:
bool_recursive
,
user_id:
params
[
"user_id"
])},
collection:
paged_comment_threads
.
map
{
|
t
|
t
.
to_hash
(
recursive:
bool_recursive
,
user_id:
params
[
"user_id"
])},
num_pages:
num_pages
,
num_pages:
num_pages
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment