diff --git a/app/controllers/articles_controller.rb b/app/controllers/articles_controller.rb index 3fe559993..4ac1edbaf 100644 --- a/app/controllers/articles_controller.rb +++ b/app/controllers/articles_controller.rb @@ -197,8 +197,10 @@ class ArticlesController < ApplicationController def handle_user_or_organization_feed if (@user = User.find_by(username: params[:username])) + Honeycomb.add_field("articles_route.user", true) @articles = @articles.where(user_id: @user.id) elsif (@user = Organization.find_by(slug: params[:username])) + Honeycomb.add_field("articles_route.org", true) @articles = @articles.where(organization_id: @user.id).includes(:user) end end diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index 988acef7f..3d8011ad3 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -105,12 +105,16 @@ class StoriesController < ApplicationController @organization = Organization.find_by(slug: params[:username]) @page = Page.find_by(slug: params[:username], is_top_level_path: true) if @podcast + Honeycomb.add_field("stories_route.podcast", true) handle_podcast_index elsif @organization + Honeycomb.add_field("stories_route.org", true) handle_organization_index elsif @page + Honeycomb.add_field("stories_route.page", true) handle_page_display else + Honeycomb.add_field("stories_route.user", true) handle_user_index end end