1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

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

@ -54,6 +54,10 @@ class Actor(Base, BaseActor):
is_blocked = Column(Boolean, nullable=False, default=False, server_default="0")
is_deleted = Column(Boolean, nullable=False, default=False, server_default="0")
are_announces_hidden_from_stream = Column(
Boolean, nullable=False, default=False, server_default="0"
)
@property
def is_from_db(self) -> bool:
return True