Merge remote-tracking branch 'origin/better-themeing' into merging-upstream

This commit is contained in:
Ondřej Hruška
2017-09-28 09:20:59 +02:00
25 changed files with 116 additions and 52 deletions

View File

@@ -110,6 +110,10 @@ class User < ApplicationRecord
settings.noindex
end
def setting_theme
settings.theme
end
def token_for_app(a)
return nil if a.nil? || a.owner != self
Doorkeeper::AccessToken