diff --git a/models/site.rb b/models/site.rb index a3a7870b..5a5d9268 100644 --- a/models/site.rb +++ b/models/site.rb @@ -830,12 +830,10 @@ class Site < Sequel::Model ((total_used_space.to_f / maximum_space) * 100).round(1) end - # This returns true even if they end their support plan. def supporter? - !owner.values[:stripe_customer_id].nil? + plan_type != 'free' end - # This will return false if they have ended their plan. def ended_supporter? owner.values[:plan_ended] end diff --git a/views/_news.erb b/views/_news.erb index 90f781de..ab64dbb9 100644 --- a/views/_news.erb +++ b/views/_news.erb @@ -24,7 +24,7 @@ <% if current_site && current_site.id == actioning_site.id %> You <% else %> - <% if actioning_site.supporter? && !actioning_site.ended_supporter? %><% end %><%= actioning_site.username %> + <% if actioning_site.supporter? %><% end %><%= actioning_site.username %> <% end %> followed @@ -32,7 +32,7 @@ <% if current_site && event_site.id == current_site.id %> you <% else %> - <% if event_site.supporter? && !event_site.ended_supporter? %><% end %><%= event_site.username %> + <% if event_site.supporter? %><% end %><%= event_site.username %> <% end %> @@ -91,7 +91,7 @@ <% comment_actioning_site = comment.actioning_site_dataset.select(:id, :title, :domain, :username, :stripe_customer_id).first %>
- <% if comment_actioning_site.supporter? && !comment_actioning_site.ended_supporter? %><% end %><%= comment_actioning_site.username %> + <% if comment_actioning_site.supporter? %><% end %><%= comment_actioning_site.username %> <%= comment.created_at.ago %> diff --git a/views/_news_profile_comment.erb b/views/_news_profile_comment.erb index 14516743..33040be9 100644 --- a/views/_news_profile_comment.erb +++ b/views/_news_profile_comment.erb @@ -7,7 +7,7 @@ <% if current_site && current_site.id == actioning_site.id %> You <% else %> - <% if actioning_site.supporter? && !actioning_site.ended_supporter? %><% end %><%= actioning_site.username %> + <% if actioning_site.supporter? %><% end %><%= actioning_site.username %> <% end %> @@ -15,7 +15,7 @@ <% if current_site && current_site.id == profile_comment.site_id %> You <% else %> - <% if profile_comment.site.supporter? && !profile_comment.site.ended_supporter? %><% end %><%= profile_comment.site.username %> + <% if profile_comment.site.supporter? %><% end %><%= profile_comment.site.username %> <% end %> <%= profile_comment.created_at.ago %> diff --git a/views/browse.erb b/views/browse.erb index e64d7114..2061152b 100644 --- a/views/browse.erb +++ b/views/browse.erb @@ -74,7 +74,7 @@
diff --git a/views/site.erb b/views/site.erb index 03c18a72..47ff9f98 100644 --- a/views/site.erb +++ b/views/site.erb @@ -19,7 +19,7 @@
-

<%= site.title %> <% if site.supporter? && !site.ended_supporter? %> <% end %>

+

<%= site.title %> <% if site.supporter? %> <% end %>

<%= site.host %>

<%= site.views_english %> views
diff --git a/views/surf.erb b/views/surf.erb index ee05b7a0..a06e5e23 100644 --- a/views/surf.erb +++ b/views/surf.erb @@ -177,7 +177,7 @@ <% end %>