diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-15 10:42:01 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-15 10:42:01 -0600 |
commit | 13de392fc5769114015bb6780dce41e803fa6946 (patch) | |
tree | bc85ee77a51a0cf324955a6cbde0e15d0e850503 /app/services | |
parent | d1ea02408be8ecaa2b67ff8f219674639999ebba (diff) |
add admin option to toggle whether service/app accounts should be auto-trusted in graylist mode + give options better descriptions
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/favourite_service.rb | 2 | ||||
-rw-r--r-- | app/services/follow_service.rb | 2 | ||||
-rw-r--r-- | app/services/post_status_service.rb | 2 | ||||
-rw-r--r-- | app/services/reblog_service.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb index aeac9728b..29838ed5f 100644 --- a/app/services/favourite_service.rb +++ b/app/services/favourite_service.rb @@ -15,7 +15,7 @@ class FavouriteService < BaseService return favourite unless favourite.nil? - account.mark_known! unless !Setting.auto_mark_known || !Setting.mark_known_from_favourites || account.known? + account.mark_known! if account.can_be_marked_known? && Setting.mark_known_from_favourites favourite = Favourite.create!(account: account, status: status) curate_status(status) diff --git a/app/services/follow_service.rb b/app/services/follow_service.rb index 1d9f1c726..68dcbda23 100644 --- a/app/services/follow_service.rb +++ b/app/services/follow_service.rb @@ -15,7 +15,7 @@ class FollowService < BaseService raise ActiveRecord::RecordNotFound if target_account.nil? || target_account.id == source_account.id || target_account.suspended? raise Mastodon::NotPermittedError if target_account.blocking?(source_account) || source_account.blocking?(target_account) || target_account.moved? - target_account.mark_known! unless !Setting.auto_mark_known || !Setting.mark_known_from_follows || target_account.known? + target_account.mark_known! if target_account.can_be_marked_known? && Setting.mark_known_from_follows SyncRemoteAccountWorker.perform_async(target_account.id) unless target_account.local? || target_account.passive_relationships.exists? diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index a36a1b074..7c36a5941 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -101,7 +101,7 @@ class PostStatusService < BaseService end def mark_recipient_known - @in_reply_to.account.mark_known! unless !Setting.auto_mark_known || !Setting.mark_known_from_mentions || @in_reply_to.account.known? + @in_reply_to.account.mark_known! if @in_reply_to.account.can_be_marked_known? && Setting.mark_known_from_mentions end def set_footer_from_i_am diff --git a/app/services/reblog_service.rb b/app/services/reblog_service.rb index 4b7002fca..1488a6361 100644 --- a/app/services/reblog_service.rb +++ b/app/services/reblog_service.rb @@ -18,7 +18,7 @@ class ReblogService < BaseService new_reblog = reblog.nil? if new_reblog - reblogged_status.account.mark_known! unless !Setting.auto_mark_known || !Setting.mark_known_from_boosts || reblogged_status.account.known? + reblogged_status.account.mark_known! if reblogged_status.account.can_be_marked_known? && Setting.mark_known_from_boosts reblogged_status.touch if reblogged_status.account.id == account.id visibility = options[:visibility] || account.user&.setting_default_privacy |