mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
avoid request.env with passenger
This commit is contained in:
parent
8e62b78b9a
commit
cc5d686c35
@ -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 %>
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user