|
|
@ -100,7 +100,7 @@ class User < ApplicationRecord
|
|
|
|
|
|
|
|
|
|
|
|
delegate :auto_play_gif, :default_sensitive, :unfollow_modal, :boost_modal, :delete_modal,
|
|
|
|
delegate :auto_play_gif, :default_sensitive, :unfollow_modal, :boost_modal, :delete_modal,
|
|
|
|
:reduce_motion, :system_font_ui, :noindex, :theme, :display_media, :hide_network,
|
|
|
|
:reduce_motion, :system_font_ui, :noindex, :theme, :display_media, :hide_network,
|
|
|
|
:expand_spoilers, :default_language, :aggregate_reblogs, to: :settings, prefix: :setting, allow_nil: false
|
|
|
|
:expand_spoilers, :default_language, :aggregate_reblogs, :show_application, to: :settings, prefix: :setting, allow_nil: false
|
|
|
|
|
|
|
|
|
|
|
|
attr_reader :invite_code
|
|
|
|
attr_reader :invite_code
|
|
|
|
|
|
|
|
|
|
|
@ -244,6 +244,10 @@ class User < ApplicationRecord
|
|
|
|
@aggregates_reblogs ||= settings.aggregate_reblogs
|
|
|
|
@aggregates_reblogs ||= settings.aggregate_reblogs
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def shows_application?
|
|
|
|
|
|
|
|
@shows_application ||= settings.shows_application
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def token_for_app(a)
|
|
|
|
def token_for_app(a)
|
|
|
|
return nil if a.nil? || a.owner != self
|
|
|
|
return nil if a.nil? || a.owner != self
|
|
|
|
Doorkeeper::AccessToken
|
|
|
|
Doorkeeper::AccessToken
|
|
|
|