diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-29 14:27:57 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-29 14:30:48 -0600 |
commit | c3c2ef2190177cb94c90a3340b4e3ae152502f51 (patch) | |
tree | 5f4eb1ea3518ccfdf3351a3455f3eeaa05144278 | |
parent | 08ff7a4850a9c0669c1caec767c5042aaf6c17b3 (diff) |
actually load the css on status pages (oops)
-rw-r--r-- | app/controllers/statuses_controller.rb | 2 | ||||
-rw-r--r-- | app/controllers/stream_entries_controller.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb index 4d36cf2bb..eeece1785 100644 --- a/app/controllers/statuses_controller.rb +++ b/app/controllers/statuses_controller.rb @@ -30,6 +30,8 @@ class StatusesController < ApplicationController def show respond_to do |format| format.html do + use_pack 'public' + expires_in 10.seconds, public: true if current_account.nil? @body_classes = 'with-modals' diff --git a/app/controllers/stream_entries_controller.rb b/app/controllers/stream_entries_controller.rb index 1b89617b1..da5a8da8f 100644 --- a/app/controllers/stream_entries_controller.rb +++ b/app/controllers/stream_entries_controller.rb @@ -15,6 +15,8 @@ class StreamEntriesController < ApplicationController def show respond_to do |format| format.html do + use_pack 'public' + expires_in 5.minutes, public: true unless @stream_entry.hidden? redirect_to short_account_status_url(params[:account_username], @stream_entry.activity) |