We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2411717 commit 870bc8eCopy full SHA for 870bc8e
1 file changed
app/controllers/notifications_controller.rb
@@ -11,8 +11,9 @@ def index
11
format.html { render :index, layout: 'without_sidebar' }
12
format.json do
13
render json: (@notifications.to_a.map do |notif|
14
- notif.as_json.merge(content: helpers.render_pings_text(notif.content))
15
- end), methods: :community_name
+ notif.as_json.merge(content: helpers.render_pings_text(notif.content),
+ community_name: notif.community_name)
16
+ end)
17
end
18
19
0 commit comments