mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Adds published date field to boost activity
This commit is contained in:
parent
d8c83fa31c
commit
3fe3b0b2d5
2 changed files with 2 additions and 1 deletions
|
@ -191,6 +191,7 @@ class Like(Verb):
|
|||
class Announce(Verb):
|
||||
""" boosting a status """
|
||||
|
||||
published: str
|
||||
object: str
|
||||
type: str = "Announce"
|
||||
|
||||
|
|
|
@ -377,7 +377,7 @@ class Boost(ActivityMixin, Status):
|
|||
""" the user field is "actor" here instead of "attributedTo" """
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
reserve_fields = ["user", "boosted_status"]
|
||||
reserve_fields = ["user", "boosted_status", "published_date"]
|
||||
self.simple_fields = [f for f in self.simple_fields if f.name in reserve_fields]
|
||||
self.activity_fields = self.simple_fields
|
||||
self.many_to_many_fields = []
|
||||
|
|
Loading…
Reference in a new issue