From ce13fca0c548f679f7ce629629f38c9ed4c89e7f Mon Sep 17 00:00:00 2001 From: Claire Date: Tue, 29 Apr 2025 10:51:03 +0200 Subject: [PATCH] Add built-in context for interaction policies (#34574) --- app/helpers/context_helper.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/helpers/context_helper.rb b/app/helpers/context_helper.rb index 29e68aa396..33d7267905 100644 --- a/app/helpers/context_helper.rb +++ b/app/helpers/context_helper.rb @@ -26,6 +26,13 @@ module ContextHelper suspended: { 'toot' => 'http://joinmastodon.org/ns#', 'suspended' => 'toot:suspended' }, attribution_domains: { 'toot' => 'http://joinmastodon.org/ns#', 'attributionDomains' => { '@id' => 'toot:attributionDomains', '@type' => '@id' } }, quote_requests: { 'QuoteRequest' => 'https://w3id.org/fep/044f#QuoteRequest' }, + interaction_policies: { + 'gts' => 'https://gotosocial.org/ns#', + 'interactionPolicy' => { '@id' => 'gts:interactionPolicy', '@type' => '@id' }, + 'canQuote' => { '@id' => 'gts:canQuote', '@type' => '@id' }, + 'automaticApproval' => { '@id' => 'gts:automaticApproval', '@type' => '@id' }, + 'manualApproval' => { '@id' => 'gts:manualApproval', '@type' => '@id' }, + }, }.freeze def full_context