Allow to hide shares from actors

This commit is contained in:
Thomas Sileo 2022-12-12 20:48:05 +01:00
parent 22410862f3
commit 15dd7e184b
5 changed files with 96 additions and 1 deletions

View file

@ -2205,7 +2205,10 @@ async def _handle_announce_activity(
db_session.add(announced_inbox_object)
await db_session.flush()
announce_activity.relates_to_inbox_object_id = announced_inbox_object.id
announce_activity.is_hidden_from_stream = not is_from_following
announce_activity.is_hidden_from_stream = (
not is_from_following
or announce_activity.actor.are_announces_hidden_from_stream
)
async def _handle_like_activity(