Allow to dereference Follow object for ActivityPub (#5772)
* Allow to dereference Follow object for ActivityPub * Accept IRI as object representation for Accept activity
This commit is contained in:
		
					parent
					
						
							
								53d99ebf4f
							
						
					
				
			
			
				commit
				
					
						161c72d66d
					
				
			
		
					 10 changed files with 134 additions and 31 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue