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
da16ada4
Commit
da16ada4
authored
Nov 08, 2018
by
kaniini
Browse files
utils: use litepub @context instead of that huge mess
parent
f7334700
Pipeline
#4328
passed with stages
in 6 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/utils.ex
View file @
da16ada4
...
...
@@ -70,18 +70,7 @@ def make_json_ld_header do
%{
"@context"
=>
[
"https://www.w3.org/ns/activitystreams"
,
"https://w3id.org/security/v1"
,
%{
"manuallyApprovesFollowers"
=>
"as:manuallyApprovesFollowers"
,
"sensitive"
=>
"as:sensitive"
,
"Hashtag"
=>
"as:Hashtag"
,
"ostatus"
=>
"http://ostatus.org#"
,
"atomUri"
=>
"ostatus:atomUri"
,
"inReplyToAtomUri"
=>
"ostatus:inReplyToAtomUri"
,
"conversation"
=>
"ostatus:conversation"
,
"toot"
=>
"http://joinmastodon.org/ns#"
,
"Emoji"
=>
"toot:Emoji"
}
"https://litepub.github.io/litepub/context.jsonld"
]
}
end
...
...
Write
Preview
Markdown
is supported
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