forked from mirrors/bookwyrm
Adds last edited by to author
This commit is contained in:
parent
c405580e8e
commit
db09ca4331
2 changed files with 8 additions and 3 deletions
|
@ -65,6 +65,7 @@ class Author(ActivityObject):
|
|||
""" author of a book """
|
||||
|
||||
name: str
|
||||
lastEditedBy: str = None
|
||||
born: str = None
|
||||
died: str = None
|
||||
aliases: List[str] = field(default_factory=lambda: [])
|
||||
|
|
|
@ -153,9 +153,13 @@ class ActivitypubMixin:
|
|||
# unless it's a dm, all the followers should receive the activity
|
||||
if privacy != "direct":
|
||||
# we will send this out to a subset of all remote users
|
||||
queryset = user_model.viewer_aware_objects(user).filter(
|
||||
local=False,
|
||||
).distinct()
|
||||
queryset = (
|
||||
user_model.viewer_aware_objects(user)
|
||||
.filter(
|
||||
local=False,
|
||||
)
|
||||
.distinct()
|
||||
)
|
||||
# filter users first by whether they're using the desired software
|
||||
# this lets us send book updates only to other bw servers
|
||||
if software:
|
||||
|
|
Loading…
Reference in a new issue