avoid request.env with passenger

This commit is contained in:
Andrew Brown 2025-02-24 09:44:24 -08:00
parent 8e62b78b9a
commit cc5d686c35
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<%= render 'layouts/seo' %>
<%# todo: Is there a way to play nicer with thredded's jquery? %>
<% unless request.env.fetch('REQUEST_PATH', '').start_with?('/forum') %>
<% unless request.fullpath.start_with?('/forum') %>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ujs/1.2.2/rails.min.js" integrity="sha256-BbyWhCn0G+F6xbWJ2pcI5LnnpsnpSzyjJNVtl7ABp+M=" crossorigin="anonymous"></script>
<% end %>

View File

@ -27,7 +27,7 @@ module Extensions
end
def notify_discord
NotifyDiscordOfThreadJob.set(wait: 1.minute).perform_later(self.id)
NotifyDiscordOfThreadJob.set(wait: 1.minute).perform_later(self.id) if Rails.env.production?
end
def create_content_page_share