diff options
author | Reverite <github@reverite.sh> | 2019-05-11 18:06:12 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-05-11 18:06:12 -0700 |
commit | cdb159f27e2aeb2cf3bb184ac20b7056b013f714 (patch) | |
tree | 01a185cccbaedb031eaf592706349907dc6decd4 /app/controllers/stream_entries_controller.rb | |
parent | b403052b6759c8a87fc8e20304c0c31c05412313 (diff) | |
parent | f6838a28f64a2e1a955d7062d8b4270312df802f (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/stream_entries_controller.rb')
-rw-r--r-- | app/controllers/stream_entries_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/stream_entries_controller.rb b/app/controllers/stream_entries_controller.rb index 8cb54a148..1e16c5157 100644 --- a/app/controllers/stream_entries_controller.rb +++ b/app/controllers/stream_entries_controller.rb @@ -16,6 +16,12 @@ class StreamEntriesController < ApplicationController respond_to do |format| format.html do use_pack 'public' + + unless user_signed_in? + skip_session! + expires_in 5.minutes, public: true + end + redirect_to short_account_status_url(params[:account_username], @stream_entry.activity) if @type == 'status' end |