Remove unused E2EE-related methods (#31964)
This commit is contained in:
		
							parent
							
								
									b071e618e7
								
							
						
					
					
						commit
						5d573c976e
					
				@ -209,7 +209,6 @@ const KNOWN_EVENT_TYPES = [
 | 
				
			|||||||
  'notification',
 | 
					  'notification',
 | 
				
			||||||
  'conversation',
 | 
					  'conversation',
 | 
				
			||||||
  'filters_changed',
 | 
					  'filters_changed',
 | 
				
			||||||
  'encrypted_message',
 | 
					 | 
				
			||||||
  'announcement',
 | 
					  'announcement',
 | 
				
			||||||
  'announcement.delete',
 | 
					  'announcement.delete',
 | 
				
			||||||
  'announcement.reaction',
 | 
					  'announcement.reaction',
 | 
				
			||||||
 | 
				
			|||||||
@ -26,16 +26,5 @@ class ActivityPub::ActivityPresenter < ActiveModelSerializers::Model
 | 
				
			|||||||
        end
 | 
					        end
 | 
				
			||||||
      end
 | 
					      end
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					 | 
				
			||||||
    def from_encrypted_message(encrypted_message)
 | 
					 | 
				
			||||||
      new.tap do |presenter|
 | 
					 | 
				
			||||||
        presenter.id = ActivityPub::TagManager.instance.generate_uri_for(nil)
 | 
					 | 
				
			||||||
        presenter.type = 'Create'
 | 
					 | 
				
			||||||
        presenter.actor = ActivityPub::TagManager.instance.uri_for(encrypted_message.source_account)
 | 
					 | 
				
			||||||
        presenter.published = Time.now.utc
 | 
					 | 
				
			||||||
        presenter.to = ActivityPub::TagManager.instance.uri_for(encrypted_message.target_account)
 | 
					 | 
				
			||||||
        presenter.virtual_object = encrypted_message
 | 
					 | 
				
			||||||
      end
 | 
					 | 
				
			||||||
    end
 | 
					 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user