Explorar el Código

Switch OGP default type from "website" to "article"

This is what Mastodon uses and might fix some link preview bugs I've encountered
warnings-as-errors
Mark Felder hace 3 años
padre
commit
9cb8960284
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      lib/pleroma/web/metadata/providers/open_graph.ex

+ 2
- 2
lib/pleroma/web/metadata/providers/open_graph.ex Ver fichero

@@ -32,7 +32,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do
property: "og:description",
content: scrubbed_content
], []},
{:meta, [property: "og:type", content: "website"], []}
{:meta, [property: "og:type", content: "article"], []}
] ++
if attachments == [] or Metadata.activity_nsfw?(object) do
[
@@ -57,7 +57,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do
], []},
{:meta, [property: "og:url", content: user.uri || user.ap_id], []},
{:meta, [property: "og:description", content: truncated_bio], []},
{:meta, [property: "og:type", content: "website"], []},
{:meta, [property: "og:type", content: "article"], []},
{:meta, [property: "og:image", content: Utils.attachment_url(User.avatar_url(user))], []},
{:meta, [property: "og:image:width", content: 150], []},
{:meta, [property: "og:image:height", content: 150], []}


Cargando…
Cancelar
Guardar