activitypub: publisher: fixups
This commit is contained in:
		
							parent
							
								
									fedaca15a3
								
							
						
					
					
						commit
						c23276a59a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -26,10 +26,11 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
 | 
			
		|||
  Determine if an activity can be represented by running it through Transmogrifier.
 | 
			
		||||
  """
 | 
			
		||||
  def is_representable?(%Activity{} = activity) do
 | 
			
		||||
    with %{} = _data <- Transmogrifier.prepare_outgoing(activity.data) do
 | 
			
		||||
    with {:ok, _data} <- Transmogrifier.prepare_outgoing(activity.data) do
 | 
			
		||||
      true
 | 
			
		||||
    else
 | 
			
		||||
      _e -> false
 | 
			
		||||
      _e ->
 | 
			
		||||
        false
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue