module Queries
  module DependeeExpansionRules
    extend DependentExpansionRules
    extend self

  private

    def custom(link_type)
      {
        redirect: [],
        gone: [],
        topical_event: default_fields + [:details],
        placeholder_topical_event: default_fields + [:details],
        organisation: default_fields + [:details],
        placeholder_organisation: default_fields + [:details],
      }[link_type]
    end
  end
end

module Queries
  module DependeeExpansionRules
    extend DependentExpansionRules
    extend self

  private

    def custom(link_type)
      {
        redirect: [],
        gone: [],
        topical_event: default_fields + [:details],
        placeholder_topical_event: default_fields + [:details],
        organisation: default_fields + [:details],
        placeholder_organisation: default_fields + [:details],
        taxon: default_fields + [:details],
      }[link_type]
    end
  end
end

Add details hash to taxons in dependee expansion rules
Add details hash to taxons in dependee expansion rules

The content-tagger app needs access to the details hash in taxon
expanded links so it can make use of the internal name field.
