From 36e35c913e28953677e0b7501e4c37d539433799 Mon Sep 17 00:00:00 2001
From: Kyle Drake
Date: Thu, 30 Nov 2023 15:32:31 -0600
Subject: [PATCH] invoicing: parent site not current site
---
app/settings.rb | 2 +-
views/settings/account/supporter.erb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/settings.rb b/app/settings.rb
index 3ad42e83..e924011e 100644
--- a/app/settings.rb
+++ b/app/settings.rb
@@ -18,7 +18,7 @@ end
get '/settings/invoices/?' do
require_login
@title = 'Invoices'
- @invoices = current_site.stripe_customer_id ? Stripe::Invoice.list(customer: current_site.stripe_customer_id) : []
+ @invoices = parent_site.stripe_customer_id ? Stripe::Invoice.list(customer: parent_site.stripe_customer_id) : []
erb :'settings/invoices'
end
diff --git a/views/settings/account/supporter.erb b/views/settings/account/supporter.erb
index 3f7e8c24..1f39d0ea 100644
--- a/views/settings/account/supporter.erb
+++ b/views/settings/account/supporter.erb
@@ -12,7 +12,7 @@
You currently have the Free Plan (<%= current_site.maximum_space.to_space_pretty %>).
Want to get more space and help Neocities? Become a supporter!
Supporter Info
- <% if current_site.stripe_customer_id || current_site.paypal_profile_id %>
+ <% if parent_site.stripe_customer_id || parent_site.paypal_profile_id %>
Generated Invoices
<% end %>