Add support for blocking actors
This commit is contained in:
parent
7782a39638
commit
cc086f3264
6 changed files with 148 additions and 4 deletions
|
@ -1271,6 +1271,10 @@ async def save_to_inbox(
|
|||
await _process_transient_object(db_session, raw_object, actor)
|
||||
return None
|
||||
|
||||
if actor.is_blocked:
|
||||
logger.warning("Actor {actor.ap_id} is blocked, ignoring object")
|
||||
return None
|
||||
|
||||
raw_object_id = ap.get_id(raw_object)
|
||||
forwarded_by_actor = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue