forked from potsda.mn/mobilizon
Properly handle replying to an event that has been deleted
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
770a518ad1
commit
4bb90ebb3f
|
@ -83,6 +83,10 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do
|
|||
{:ok, %Activity{} = activity, entity} ->
|
||||
{:ok, activity, entity}
|
||||
|
||||
{:error, :entity_tombstoned} ->
|
||||
Logger.debug("Tried to reply to an event that has been tombstoned")
|
||||
:error
|
||||
|
||||
{:error, :event_not_allow_commenting} ->
|
||||
Logger.debug("Tried to reply to an event for which comments are closed")
|
||||
:error
|
||||
|
|
Loading…
Reference in a new issue