Skip to content

Commit 870bc8e

Browse files
committed
fixed community_name not being applied to notifications
1 parent 2411717 commit 870bc8e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/controllers/notifications_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ def index
1111
format.html { render :index, layout: 'without_sidebar' }
1212
format.json do
1313
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
14+
notif.as_json.merge(content: helpers.render_pings_text(notif.content),
15+
community_name: notif.community_name)
16+
end)
1617
end
1718
end
1819
end

0 commit comments

Comments
 (0)