Adds published date field to boost activity

This commit is contained in:
Mouse Reeve 2021-03-24 13:25:00 -07:00
parent d8c83fa31c
commit 3fe3b0b2d5
2 changed files with 2 additions and 1 deletions

View file

@ -191,6 +191,7 @@ class Like(Verb):
class Announce(Verb):
""" boosting a status """
published: str
object: str
type: str = "Announce"

View file

@ -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 = []