diff --git a/app/views/collections/show.html.erb b/app/views/collections/show.html.erb index e78a5e096..d147a6415 100644 --- a/app/views/collections/show.html.erb +++ b/app/views/collections/show.html.erb @@ -2,6 +2,7 @@ <%= tag.meta property: "og:type", content: "website" %> <%= tag.meta name: "description", content: truncate(sanitize(@collection.caption), length: 80) if @collection.caption.present? %> <%= tag.link rel: "alternate", type: Mime[:oembed], href: collection_url(@collection, format: :oembed), title: @collection.name %> + <%= tag.link rel: "alternate", type: CGI.escapeHTML(Mime[:activitypub]), href: @collection.fedipub_actor&.federated_url if SiteSettings.federation_enabled? %> <% end %> <%= content_for :page_header do %> diff --git a/app/views/creators/show.html.erb b/app/views/creators/show.html.erb index a9f8b3831..3ac291338 100644 --- a/app/views/creators/show.html.erb +++ b/app/views/creators/show.html.erb @@ -2,6 +2,7 @@ <%= tag.meta property: "og:type", content: "profile" %> <%= tag.meta name: "description", content: truncate(sanitize(@creator.caption), length: 80) if @creator.caption.present? %> <%= tag.link rel: "alternate", type: Mime[:oembed], href: creator_url(@creator, format: :oembed), title: @creator.name %> + <%= tag.link rel: "alternate", type: CGI.escapeHTML(Mime[:activitypub]), href: @creator.fedipub_actor&.federated_url if SiteSettings.federation_enabled? %> <% end %> <%= content_for :page_header do %> diff --git a/app/views/models/show.html.erb b/app/views/models/show.html.erb index 8e46667f7..b9e8f9ab8 100644 --- a/app/views/models/show.html.erb +++ b/app/views/models/show.html.erb @@ -4,6 +4,7 @@ <%= tag.meta name: "description", content: truncate(sanitize(@model.notes), length: 80) if @model.notes.present? %> <%= tag.meta name: "fediverse:creator", content: @model.creator.fedipub_actor.at_address if @model.creator %> <%= tag.link rel: "alternate", type: Mime[:oembed], href: model_url(@model, format: :oembed), title: @model.name %> + <%= tag.link rel: "alternate", type: CGI.escapeHTML(Mime[:activitypub]), href: @model.fedipub_actor&.federated_url if SiteSettings.federation_enabled? %> <%- if @model.entrypoint %> <%= tag.link rel: "alternate", as: "spatial-entrypoint", type: @model.entrypoint.mime_type, href: model_model_file_raw_url(@model, @model.entrypoint.filename, anchor: @model.entrypoint_fragment) %> <%- end %>