* Clean up collapsible components * Expose user Outboxes and AS2 representations of statuses * Save work thus far. * Fix bad merge. * Save my work * Clean up pagination. * First test working. * Add tests. * Add Forbidden error template. * Revert yarn.lock changes. * Fix code style deviations and use localized instead of hardcoded English text.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			333 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			333 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| class Api::Activitypub::NotesController < ApiController
 | |
|   before_action :set_status
 | |
| 
 | |
|   respond_to :activitystreams2
 | |
| 
 | |
|   def show
 | |
|     headers['Access-Control-Allow-Origin'] = '*'
 | |
| 
 | |
|     forbidden unless @status.permitted?
 | |
|   end
 | |
| 
 | |
|   private
 | |
| 
 | |
|   def set_status
 | |
|     @status = Status.find(params[:id])
 | |
|   end
 | |
| end
 |