From 08ae90d601b3b3823ea064a4001e4e690f66b384 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 17 Nov 2014 23:47:05 -0800 Subject: [PATCH] fix for supporter heart in comments --- app.rb | 2 +- views/_news_profile_comment.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.rb b/app.rb index 7bc00d3c..0d3bb4c0 100644 --- a/app.rb +++ b/app.rb @@ -124,7 +124,7 @@ post '/settings/create_child' do if site.valid? site.save - flash[:success] = 'Your new site has been created!' + flash[:success] = 'Your new site has been created! To manage it, click your username in the top right and go to "Switch Site".' redirect '/settings#sites' else flash[:error] = site.errors.first.last.first diff --git a/views/_news_profile_comment.erb b/views/_news_profile_comment.erb index 845448ec..5840d82f 100644 --- a/views/_news_profile_comment.erb +++ b/views/_news_profile_comment.erb @@ -1,5 +1,5 @@ -<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id).first %> -<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id).first %> +<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %> +<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>