]> cat aescling's git repositories - mastodon.git/commitdiff
Merge branch 'master' into glitch-soc/merge-upstream
authorThibaut Girka <thib@sitedethib.com>
Fri, 10 May 2019 15:09:12 +0000 (17:09 +0200)
committerThibaut Girka <thib@sitedethib.com>
Fri, 10 May 2019 15:09:12 +0000 (17:09 +0200)
Conflicts:
- app/controllers/statuses_controller.rb
  minor conflict because of glitch-soc's theming system
- app/controllers/stream_entries_controller.rb
  minor conflict because of glitch-soc's theming system

13 files changed:
1  2 
.env.production.sample
Gemfile
Gemfile.lock
app/controllers/statuses_controller.rb
app/controllers/stream_entries_controller.rb
app/javascript/mastodon/features/compose/components/compose_form.js
app/javascript/mastodon/locales/defaultMessages.json
app/javascript/mastodon/locales/en.json
app/javascript/mastodon/locales/ja.json
app/javascript/styles/mastodon/components.scss
config/locales/ja.yml
db/schema.rb
lib/mastodon/version.rb

Simple merge
diff --cc Gemfile
Simple merge
diff --cc Gemfile.lock
Simple merge
index 53cf1c4cade5f6e3a5a7f6ee2774ba2f46a97eff,e60646ba33848c439e61869767e102266ab09bd4..28eebda28b39fadfc199193ea901ee731bb88317
@@@ -27,8 -27,10 +27,12 @@@ class StatusesController < ApplicationC
    def show
      respond_to do |format|
        format.html do
-         mark_cacheable! unless user_signed_in?
 +        use_pack 'public'
++
+         unless user_signed_in?
+           skip_session!
+           expires_in 10.seconds, public: true
+         end
  
          @body_classes = 'with-modals'
  
index 8cb54a1487127fe6230e1b0d717a8e786e64fcd9,b75cefa74c4bfee6e2cba423b98c7140efd00230..1e16c5157d73fa9c110b9249f8cd6376ff7668fb
@@@ -15,7 -15,11 +15,13 @@@ class StreamEntriesController < Applica
    def show
      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
  
Simple merge
diff --cc db/schema.rb
Simple merge
Simple merge