Merge remote-tracking branch 'origin/master' into gs-master

Conflicts:
 	app/controllers/home_controller.rb
 	app/controllers/stream_entries_controller.rb
 	app/javascript/mastodon/locales/ja.json
 	app/javascript/mastodon/locales/pl.json
This commit is contained in:
David Yip
2018-04-18 18:48:12 -05:00
124 changed files with 2089 additions and 995 deletions

View File

@@ -2,7 +2,9 @@
class HomeController < ApplicationController
before_action :authenticate_user!
before_action :set_pack
before_action :set_referrer_policy_header
before_action :set_initial_state_json
def index
@@ -67,4 +69,8 @@ class HomeController < ApplicationController
about_path
end
end
def set_referrer_policy_header
response.headers['Referrer-Policy'] = 'origin'
end
end