Add Event activity-type support (#12637)
This adds support for Event AP type in Mastodon. Events are converted into toots by taking their title (AS name) and their URL (AP ID). Event picture is also brought in if available. Testable by fetching event content from https://test.mobilizon.org Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
		
				
					committed by
					
						
						Eugen Rochko
					
				
			
			
				
	
			
			
			
						parent
						
							34aa5c7cb2
						
					
				
				
					commit
					8094955461
				
			@@ -5,7 +5,7 @@ class ActivityPub::Activity
 | 
			
		||||
  include Redisable
 | 
			
		||||
 | 
			
		||||
  SUPPORTED_TYPES = %w(Note Question).freeze
 | 
			
		||||
  CONVERTED_TYPES = %w(Image Audio Video Article Page).freeze
 | 
			
		||||
  CONVERTED_TYPES = %w(Image Audio Video Article Page Event).freeze
 | 
			
		||||
 | 
			
		||||
  def initialize(json, account, **options)
 | 
			
		||||
    @json    = json
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user