Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
4883b996
Verified
Commit
4883b996
authored
Jan 28, 2022
by
Alex Gleason
Browse files
Actually, don't send _misskey_quote anymore
parent
108997b7
Pipeline
#38905
passed with stages
in 9 minutes and 47 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/transmogrifier.ex
View file @
4883b996
...
@@ -669,13 +669,12 @@ def set_reply_to_uri(%{"inReplyTo" => in_reply_to} = object) when is_binary(in_r
...
@@ -669,13 +669,12 @@ def set_reply_to_uri(%{"inReplyTo" => in_reply_to} = object) when is_binary(in_r
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
...
...
priv/static/schemas/litepub-0.1.jsonld
View file @
4883b996
...
@@ -17,7 +17,6 @@
...
@@ -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 @@
...
@@ -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"
...
...
test/pleroma/web/activity_pub/transmogrifier_test.exs
View file @
4883b996
...
@@ -336,7 +336,6 @@ test "it prepares a quote post" do
...
@@ -336,7 +336,6 @@ test "it prepares a quote post" 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment