Adds last edited by to author
This commit is contained in:
parent
c405580e8e
commit
db09ca4331
@ -65,6 +65,7 @@ class Author(ActivityObject):
|
|||||||
""" author of a book """
|
""" author of a book """
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
|
lastEditedBy: str = None
|
||||||
born: str = None
|
born: str = None
|
||||||
died: str = None
|
died: str = None
|
||||||
aliases: List[str] = field(default_factory=lambda: [])
|
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
|
# unless it's a dm, all the followers should receive the activity
|
||||||
if privacy != "direct":
|
if privacy != "direct":
|
||||||
# we will send this out to a subset of all remote users
|
# we will send this out to a subset of all remote users
|
||||||
queryset = user_model.viewer_aware_objects(user).filter(
|
queryset = (
|
||||||
|
user_model.viewer_aware_objects(user)
|
||||||
|
.filter(
|
||||||
local=False,
|
local=False,
|
||||||
).distinct()
|
)
|
||||||
|
.distinct()
|
||||||
|
)
|
||||||
# filter users first by whether they're using the desired software
|
# filter users first by whether they're using the desired software
|
||||||
# this lets us send book updates only to other bw servers
|
# this lets us send book updates only to other bw servers
|
||||||
if software:
|
if software:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user