Discourse Open Graph

I think it does! But it would be necessary to add an override for every topic.

Maybe this could be a feature for AI Topic Summary–it could override the metadata content based if they had the ai summary in the topic itself.

Some pseudo-code, inspired by this snippet in the Open Graph plugin:

  register_modifier(:meta_data_content) do |content, property, opts|
    next content if property == :url # we don't want to override the url
    url = opts[:url]
    override = Topic.find_by_url(url)[:ai_meta_data_override]
    if override
      content = override[property] if override[property] # it can be either :title or :description
    end
    content
  end
2 Likes