Add API data to show/index views
This commit is contained in:
@@ -32,6 +32,7 @@ class ForumTopicsController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
@current_item = @forum_topic
|
||||
if request.format == Mime::Type.lookup("text/html")
|
||||
@forum_topic.mark_as_read!(CurrentUser.user)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user