mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Move back to canonicalising public as "as:Public"
This commit is contained in:
parent
85b4910829
commit
1b9cf24d09
2 changed files with 2 additions and 3 deletions
|
@ -647,9 +647,9 @@ class Post(StatorModel):
|
||||||
# Targeting
|
# Targeting
|
||||||
# TODO: Add followers object
|
# TODO: Add followers object
|
||||||
if self.visibility == self.Visibilities.public:
|
if self.visibility == self.Visibilities.public:
|
||||||
value["to"].append("Public")
|
value["to"].append("as:Public")
|
||||||
elif self.visibility == self.Visibilities.unlisted:
|
elif self.visibility == self.Visibilities.unlisted:
|
||||||
value["cc"].append("Public")
|
value["cc"].append("as:Public")
|
||||||
# Mentions
|
# Mentions
|
||||||
for mention in self.mentions.all():
|
for mention in self.mentions.all():
|
||||||
value["tag"].append(mention.to_ap_tag())
|
value["tag"].append(mention.to_ap_tag())
|
||||||
|
|
|
@ -600,7 +600,6 @@ def canonicalise(json_data: dict, include_security: bool = False) -> dict:
|
||||||
"focalPoint": {"@container": "@list", "@id": "toot:focalPoint"},
|
"focalPoint": {"@container": "@list", "@id": "toot:focalPoint"},
|
||||||
"Hashtag": "as:Hashtag",
|
"Hashtag": "as:Hashtag",
|
||||||
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
||||||
"Public": "as:Public",
|
|
||||||
"sensitive": "as:sensitive",
|
"sensitive": "as:sensitive",
|
||||||
"toot": "http://joinmastodon.org/ns#",
|
"toot": "http://joinmastodon.org/ns#",
|
||||||
"votersCount": "toot:votersCount",
|
"votersCount": "toot:votersCount",
|
||||||
|
|
Loading…
Reference in a new issue