You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: add.rb
    path of file: ./repos/mastodon/app/lib/activitypub/activity
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ActivityPub::Activity::Add < ActivityPub::Activity
  def perform
    return if @json['target'].blank?

    case value_or_i
    
  def perform
    return if @json['target'].blank?

    case value_or_id(@json['target'])
    when @account.featured_collection_url
      case @object['type']
      when 'Hashtag'
        add_featured_tags
      else
        add_featured
      end