Adds last edited by to author

This commit is contained in:
Mouse Reeve 2021-04-22 07:51:06 -07:00
parent c405580e8e
commit db09ca4331
2 changed files with 8 additions and 3 deletions

View file

@ -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: [])

View file

@ -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: