From 1b9cf24d09a73f06f4d5331c5ac5dab39f194981 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 8 Mar 2023 10:11:56 -0700 Subject: [PATCH] Move back to canonicalising public as "as:Public" --- activities/models/post.py | 4 ++-- core/ld.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/activities/models/post.py b/activities/models/post.py index 22ad292..127626e 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -647,9 +647,9 @@ class Post(StatorModel): # Targeting # TODO: Add followers object if self.visibility == self.Visibilities.public: - value["to"].append("Public") + value["to"].append("as:Public") elif self.visibility == self.Visibilities.unlisted: - value["cc"].append("Public") + value["cc"].append("as:Public") # Mentions for mention in self.mentions.all(): value["tag"].append(mention.to_ap_tag()) diff --git a/core/ld.py b/core/ld.py index bdb9fa2..184a7b5 100644 --- a/core/ld.py +++ b/core/ld.py @@ -600,7 +600,6 @@ def canonicalise(json_data: dict, include_security: bool = False) -> dict: "focalPoint": {"@container": "@list", "@id": "toot:focalPoint"}, "Hashtag": "as:Hashtag", "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", - "Public": "as:Public", "sensitive": "as:sensitive", "toot": "http://joinmastodon.org/ns#", "votersCount": "toot:votersCount",