Add built-in context for interaction policies (#34574)
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user