Provide local og:url for remote activities
This commit is contained in:
parent
74346a7035
commit
afd83db0d7
@ -13,6 +13,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do
|
|||||||
@impl Provider
|
@impl Provider
|
||||||
def build_tags(%{
|
def build_tags(%{
|
||||||
object: object,
|
object: object,
|
||||||
|
url: url,
|
||||||
user: user
|
user: user
|
||||||
}) do
|
}) do
|
||||||
attachments = build_attachments(object)
|
attachments = build_attachments(object)
|
||||||
@ -37,7 +38,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraph do
|
|||||||
property: "og:title",
|
property: "og:title",
|
||||||
content: "#{user.name}" <> content
|
content: "#{user.name}" <> content
|
||||||
], []},
|
], []},
|
||||||
{:meta, [property: "og:url", content: object.data["id"]], []},
|
{:meta, [property: "og:url", content: url], []},
|
||||||
{:meta,
|
{:meta,
|
||||||
[
|
[
|
||||||
property: "og:description",
|
property: "og:description",
|
||||||
|
@ -150,6 +150,7 @@ defmodule Pleroma.Web.OStatus.OStatusController do
|
|||||||
|
|
||||||
Fallback.RedirectController.redirector_with_meta(conn, %{
|
Fallback.RedirectController.redirector_with_meta(conn, %{
|
||||||
object: object,
|
object: object,
|
||||||
|
url: Pleroma.Web.Router.Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, activity.id),
|
||||||
user: user
|
user: user
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user