From 64bb620425e7d96a47e79ca86c0068860977cbfe Mon Sep 17 00:00:00 2001 From: mStar Date: Wed, 31 Jul 2024 19:22:00 +0200 Subject: [PATCH] Move things around in constants Doesn't affect values and names, only order in which they appear in the file --- constants.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/constants.go b/constants.go index ac7e969..cda7b85 100644 --- a/constants.go +++ b/constants.go @@ -9,21 +9,23 @@ const ( const ( KEY_MASTO_DEVICES = "http://joinmastodon.org/ns#devices" // No idea what this is, but Masto includes it KEY_MASTO_DISCOVERABLE = "http://joinmastodon.org/ns#discoverable" // iirc this is whether the object can be found by crawlers - KEY_MASTO_EMOJI = "http://joinmastodon.org/ns#Emoji" // Object is an emoji KEY_MASTO_FEATURED = "http://joinmastodon.org/ns#featured" // Users tagged? I think KEY_MASTO_FEATURED_TAGS = "http://joinmastodon.org/ns#featuredTags" // Hashtags included, I think KEY_MASTO_INDEXABLE = "http://joinmastodon.org/ns#indexable" // Is the object crawlable round 2 KEY_MASTO_MEMORIAL = "http://joinmastodon.org/ns#memorial" // Account dead and disabled? + + KEY_MASTO_EMOJI = "http://joinmastodon.org/ns#Emoji" // Object is an emoji ) const ( KEY_W3_INBOX = "http://www.w3.org/ns/ldp#inbox" // Where to send activities to - KEY_W3_SECURITY_KEY = "https://w3id.org/security#Key" // Object is a PublicKey KEY_W3_SECURITY_OWNER = "https://w3id.org/security#owner" // Owner of the public key KEY_W3_SECURITY_PUBLICKEY = "https://w3id.org/security#publicKey" // Public key of the account KEY_W3_SECURITY_PUBLICKEYPEM = "https://w3id.org/security#publicKeyPem" // Pem content of the key KEY_W3_VCARD_ADRESS = "http://www.w3.org/2006/vcard/ns#Address" // Vcard address of an account KEY_W3_VCARD_BIRTHDAY = "http://www.w3.org/2006/vcard/ns#bday" // Vcard birthday of an account + + KEY_W3_SECURITY_KEY = "https://w3id.org/security#Key" // Object is a PublicKey ) const ( @@ -67,6 +69,7 @@ const ( KEY_ACTIVITYSTREAMS_LIKE = "https://www.w3.org/ns/activitystreams#Like" // Object is an activity of type like KEY_ACTIVITYSTREAMS_NOTE = "https://www.w3.org/ns/activitystreams#Note" // Object is of type Note KEY_ACTIVITYSTREAMS_IMAGE_TYPE = "https://www.w3.org/ns/activitystreams#Image" // Object is of type Image + KEY_ACTIVITYSTREAMS_MENTION = "https://www.w3.org/ns/activitystreams#Mention" // Object is of type Mention // Collection things KEY_ACTIVITYSTREAMS_FIRST = "https://www.w3.org/ns/activitystreams#first" // First page in a collection