Change featured tag updates to add/remove activity (#19409)
* Change featured tag updates to add/remove activity * Fix to check for the existence of feature tag * Rename service and worker * Merge AddHashtagSerializer with AddSerializer * Undo removal of sidekiq_options
This commit is contained in:
		@@ -13,14 +13,12 @@ class Api::V1::FeaturedTagsController < Api::BaseController
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def create
 | 
			
		||||
    @featured_tag = current_account.featured_tags.create!(featured_tag_params)
 | 
			
		||||
    ActivityPub::UpdateDistributionWorker.perform_in(3.minutes, current_account.id)
 | 
			
		||||
    render json: @featured_tag, serializer: REST::FeaturedTagSerializer
 | 
			
		||||
    featured_tag = CreateFeaturedTagService.new.call(current_account, featured_tag_params[:name])
 | 
			
		||||
    render json: featured_tag, serializer: REST::FeaturedTagSerializer
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def destroy
 | 
			
		||||
    @featured_tag.destroy!
 | 
			
		||||
    ActivityPub::UpdateDistributionWorker.perform_in(3.minutes, current_account.id)
 | 
			
		||||
    RemoveFeaturedTagWorker.perform_async(current_account.id, @featured_tag.id)
 | 
			
		||||
    render_empty
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user