Skip to content

Commit 1540087

Browse files
committed
make sure web3 urls start with https://
1 parent cbc8bfc commit 1540087

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/jobs/cache/browser_channels/responses_for_prefix.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ def get_site_banner_details(site_banner_lookup)
163163
include_web3 = (site_banner_lookup.channel.crypto_address_for_channels.length > 0) && public_id
164164
details.web3_url = include_web3 ? "#{ENV["CREATORS_HOST"]}/c/#{public_id}" : ""
165165

166+
# ENV host variables serve various purposes, some will begin with https and some wont
167+
details.web3_url.start_with?("https://") ? details.web3_url : "https://#{details.web3_url}"
168+
166169
if site_banner_lookup.derived_site_banner_info["socialLinks"].present?
167170
social_links_pb = nil
168171
site_banner_lookup.derived_site_banner_info["socialLinks"].each do |domain, handle|

0 commit comments

Comments
 (0)