Actually, don't send _misskey_quote anymore
This commit is contained in:
parent
4075eecca0
commit
79fca39faf
3 changed files with 5 additions and 9 deletions
|
@ -668,13 +668,12 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
||||||
|
|
||||||
def set_reply_to_uri(obj), do: obj
|
def set_reply_to_uri(obj), do: obj
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Fedibird compatibility
|
||||||
|
https://github.com/fedibird/mastodon/commit/dbd7ae6cf58a92ec67c512296b4daaea0d01e6ac
|
||||||
|
"""
|
||||||
def set_quote_url(%{"quoteUrl" => quote_url} = object) when is_binary(quote_url) do
|
def set_quote_url(%{"quoteUrl" => quote_url} = object) when is_binary(quote_url) do
|
||||||
Map.merge(object, %{
|
Map.put(object, "quoteUri", quote_url)
|
||||||
# Fedibird quote
|
|
||||||
"quoteUri" => quote_url,
|
|
||||||
# Misskey quote
|
|
||||||
"_misskey_quote" => quote_url
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_quote_url(obj), do: obj
|
def set_quote_url(obj), do: obj
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
"ostatus": "http://ostatus.org#",
|
"ostatus": "http://ostatus.org#",
|
||||||
"schema": "http://schema.org#",
|
"schema": "http://schema.org#",
|
||||||
"toot": "http://joinmastodon.org/ns#",
|
"toot": "http://joinmastodon.org/ns#",
|
||||||
"misskey": "https://misskey-hub.net/ns#",
|
|
||||||
"fedibird": "http://fedibird.com/ns#",
|
"fedibird": "http://fedibird.com/ns#",
|
||||||
"value": "schema:value",
|
"value": "schema:value",
|
||||||
"sensitive": "as:sensitive",
|
"sensitive": "as:sensitive",
|
||||||
|
@ -30,7 +29,6 @@
|
||||||
},
|
},
|
||||||
"quoteUrl": "as:quoteUrl",
|
"quoteUrl": "as:quoteUrl",
|
||||||
"quoteUri": "fedibird:quoteUri",
|
"quoteUri": "fedibird:quoteUri",
|
||||||
"_misskey_quote": "misskey:_misskey_quote",
|
|
||||||
"oauthRegistrationEndpoint": {
|
"oauthRegistrationEndpoint": {
|
||||||
"@id": "litepub:oauthRegistrationEndpoint",
|
"@id": "litepub:oauthRegistrationEndpoint",
|
||||||
"@type": "@id"
|
"@type": "@id"
|
||||||
|
|
|
@ -385,7 +385,6 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do
|
||||||
|
|
||||||
assert modified["object"]["quoteUrl"] == quote_id
|
assert modified["object"]["quoteUrl"] == quote_id
|
||||||
assert modified["object"]["quoteUri"] == quote_id
|
assert modified["object"]["quoteUri"] == quote_id
|
||||||
assert modified["object"]["_misskey_quote"] == quote_id
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue