diff options
author | Jenkins <jenkins@jenkins.ninjawedding.org> | 2018-01-03 20:17:13 +0000 |
---|---|---|
committer | Jenkins <jenkins@jenkins.ninjawedding.org> | 2018-01-03 20:17:13 +0000 |
commit | fc884d015a1a2d6c31976af3d63039390fa15939 (patch) | |
tree | 0cb950fd716f3f2cb9f13348cf42fb6e4bc8b909 /app/models | |
parent | 933840bebf4ce8f5282c88e8c3e8c1b3675fbf2d (diff) | |
parent | d907d4352e9b6cb22bc1fabd42ca3fc60aef8a37 (diff) |
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/follow_request.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/follow_request.rb b/app/models/follow_request.rb index ebf6959ce..33e5fec12 100644 --- a/app/models/follow_request.rb +++ b/app/models/follow_request.rb @@ -21,6 +21,10 @@ class FollowRequest < ApplicationRecord validates :account_id, uniqueness: { scope: :target_account_id } + def object_type + :follow + end + def authorize! account.follow!(target_account, reblogs: show_reblogs) MergeWorker.perform_async(target_account.id, account.id) |