diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2018-01-04 02:08:57 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-01-03 18:08:57 +0100 |
commit | 161c72d66d25bb8f5ff492e36a8521c701ab8afc (patch) | |
tree | d57b674958a4353bba0cf91ba4197748a66fc2f5 /app/models | |
parent | 53d99ebf4f54c25fa58709e9dc05730479ea7d02 (diff) |
Allow to dereference Follow object for ActivityPub (#5772)
* Allow to dereference Follow object for ActivityPub * Accept IRI as object representation for Accept activity
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) |