mirror of https://github.com/LemmyNet/lemmy
Allow fetching person from Pleroma, including test case (ref #1461)
parent
1aa0e1997b
commit
748aa342f1
@ -1,5 +1,8 @@
|
||||
# See the documentation for available config fields and descriptions:
|
||||
# https://join-lemmy.org/docs/en/administration/configuration.html
|
||||
{
|
||||
hostname: lemmy-alpha
|
||||
hostname: lemmy-alphan
|
||||
federation: {
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,46 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{
|
||||
"moderators": "as:moderators",
|
||||
"sensitive": "as:sensitive",
|
||||
"pt": "https://join-lemmy.org#",
|
||||
"sc": "http://schema.org#",
|
||||
"stickied": "as:stickied",
|
||||
"matrixUserId": {
|
||||
"type": "sc:Text",
|
||||
"id": "as:alsoKnownAs"
|
||||
},
|
||||
"comments_enabled": {
|
||||
"type": "sc:Boolean",
|
||||
"id": "pt:commentsEnabled"
|
||||
}
|
||||
},
|
||||
"https://w3id.org/security/v1"
|
||||
],
|
||||
"type": "Person",
|
||||
"id": "https://lemmy.ml/u/nutomic",
|
||||
"preferredUsername": "nutomic",
|
||||
"content": "<p>Lemmy maintainer. Interested in politics, video games, and many other things.</p>\n",
|
||||
"mediaType": "text/html",
|
||||
"source": {
|
||||
"content": "Lemmy maintainer. Interested in politics, video games, and many other things.",
|
||||
"mediaType": "text/markdown"
|
||||
},
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
"url": "https://lemmy.ml/pictrs/image/ed9ej7.jpg"
|
||||
},
|
||||
"inbox": "https://lemmy.ml/u/nutomic/inbox",
|
||||
"outbox": "https://lemmy.ml/u/nutomic/outbox",
|
||||
"endpoints": {
|
||||
"sharedInbox": "https://lemmy.ml/inbox"
|
||||
},
|
||||
"publicKey": {
|
||||
"id": "https://lemmy.ml/u/nutomic#main-key",
|
||||
"owner": "https://lemmy.ml/u/nutomic",
|
||||
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0lP99/s5Vv+XbPdkeqIJ\nwoD4GFnHmBnBHdEKChEUWfWj1TtioC/rGNoXFQeXQA3Amhy4nxSceiDnUgwkkuQY\nv0MtIW58NzgknEavtllxL+LSds5pg3gANaDIk8UiWTkqXTg0GnlJMpCK1Chen0l/\nszL6DEvUyTSuS5ZYDXFgewF89Pe7U0S15V5U2Harv7AgJYDyxmUL0D1pGuUCRqcE\nl5MTHJjrXeNnH1w2g8aly8YlO/Cr0L51rFg/lBF23vni7ZLv8HbmWh6YpaAf1R8h\nE45zKR7OHqymdjzrg1ITBwovefpwMkVgnJ+Wdr4HPnFlBSkXPoZeM11+Z8L0anzA\nXwIDAQAB\n-----END PUBLIC KEY-----\n"
|
||||
},
|
||||
"published": "2020-01-17T01:38:22.348392+00:00",
|
||||
"updated": "2021-08-13T00:11:15.941990+00:00"
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
{
|
||||
"@context": [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
"https://queer.hacktivis.me/schemas/litepub-0.1.jsonld",
|
||||
{
|
||||
"@language": "und"
|
||||
}
|
||||
],
|
||||
"alsoKnownAs": [],
|
||||
"attachment": [],
|
||||
"capabilities": {
|
||||
"acceptsChatMessages": true
|
||||
},
|
||||
"discoverable": false,
|
||||
"endpoints": {
|
||||
"oauthAuthorizationEndpoint": "https://queer.hacktivis.me/oauth/authorize",
|
||||
"oauthRegistrationEndpoint": "https://queer.hacktivis.me/api/v1/apps",
|
||||
"oauthTokenEndpoint": "https://queer.hacktivis.me/oauth/token",
|
||||
"sharedInbox": "https://queer.hacktivis.me/inbox",
|
||||
"uploadMedia": "https://queer.hacktivis.me/api/ap/upload_media"
|
||||
},
|
||||
"featured": "https://queer.hacktivis.me/users/lanodan/collections/featured",
|
||||
"followers": "https://queer.hacktivis.me/users/lanodan/followers",
|
||||
"following": "https://queer.hacktivis.me/users/lanodan/following",
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
"url": "https://queer.hacktivis.me/media/d23cf9b0-5586-4592-aca5-9a52777a6042/avatar_HD.png"
|
||||
},
|
||||
"id": "https://queer.hacktivis.me/users/lanodan",
|
||||
"image": {
|
||||
"type": "Image",
|
||||
"url": "https://queer.hacktivis.me/media/37b6ce56-8c24-4e64-bd70-a76e84ab0c69/53a48a3a49ed5e5637a84e4f3663df17f8d764244bbc1027ba03cfc446e8b7bd.jpg"
|
||||
},
|
||||
"inbox": "https://queer.hacktivis.me/users/lanodan/inbox",
|
||||
"manuallyApprovesFollowers": false,
|
||||
"name": "Haelwenn /элвэн/ :bzh: ",
|
||||
"outbox": "https://queer.hacktivis.me/users/lanodan/outbox",
|
||||
"preferredUsername": "lanodan",
|
||||
"publicKey": {
|
||||
"id": "https://queer.hacktivis.me/users/lanodan#main-key",
|
||||
"owner": "https://queer.hacktivis.me/users/lanodan",
|
||||
"publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsWOgdjSMc010qvxC3njI\nXJlFWMJ5gJ8QXCW/PajYdsHPM6d+jxBNJ6zp9/tIRa2m7bWHTSkuHQ7QthOpt6vu\n+dAWpKRLS607SPLItn/qUcyXvgN+H8shfyhMxvkVs9jXdtlBsLUVE7UNpN0dxzqe\nI79QWbf7o4amgaIWGRYB+OYMnIxKt+GzIkivZdSVSYjfxNnBYkMCeUxm5EpPIxKS\nP5bBHAVRRambD5NUmyKILuC60/rYuc/C+vmgpY2HCWFS2q6o34dPr9enwL6t4b3m\nS1t/EJHk9rGaaDqSGkDEfyQI83/7SDebWKuETMKKFLZi1vMgQIFuOYCIhN6bIiZm\npQIDAQAB\n-----END PUBLIC KEY-----\n\n"
|
||||
},
|
||||
"summary": "---<br/>Website: <a href=\"https://hacktivis.me/\">https://hacktivis.me/</a><br/>Lang: Français(natif), English(fluent), LSF(🤏~👌), русский (еле-еле), <br/>Politics: Anarchist as in DIY/DIWO, freedom of association, anti-authoritarian, anti-identitarianism<br/><br/>Pronouns: meh, pick any, have fun<br/>Timezone: Let's say Mars, I have a non-24h cycle<br/>```<br/>🦊🦄⚧🂡ⓥ :anarchy: 👿🐧 :gentoo:<br/>Pleroma maintainer (mostly backend)<br/>BadWolf developer<br/>Gentoo contributor<br/><br/>Dayjob: yogoko.fr<br/><br/>That person which uses HJKL in games<br/><br/>Just because computer bad: X5O!P%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*<br/><br/>banner from: <a href=\"https://soc.flyingcube.tech/objects/56f79be2-9013-4559-9826-f7dc392417db\">https://soc.flyingcube.tech/objects/56f79be2-9013-4559-9826-f7dc392417db</a><br/>Federation-bots: <a class=\"hashtag\" data-tag=\"nobot\" href=\"https://queer.hacktivis.me/tag/nobot\">#nobot</a>",
|
||||
"tag": [
|
||||
{
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
"url": "https://queer.hacktivis.me/emoji/custom/symbols/anarchy.png"
|
||||
},
|
||||
"id": "https://queer.hacktivis.me/emoji/custom/symbols/anarchy.png",
|
||||
"name": ":anarchy:",
|
||||
"type": "Emoji",
|
||||
"updated": "1970-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
"url": "https://queer.hacktivis.me/emoji/custom/mastodon.xyz/bzh.png"
|
||||
},
|
||||
"id": "https://queer.hacktivis.me/emoji/custom/mastodon.xyz/bzh.png",
|
||||
"name": ":bzh:",
|
||||
"type": "Emoji",
|
||||
"updated": "1970-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
"url": "https://queer.hacktivis.me/emoji/custom/gentoo.png"
|
||||
},
|
||||
"id": "https://queer.hacktivis.me/emoji/custom/gentoo.png",
|
||||
"name": ":gentoo:",
|
||||
"type": "Emoji",
|
||||
"updated": "1970-01-01T00:00:00Z"
|
||||
}
|
||||
],
|
||||
"type": "Person",
|
||||
"url": "https://queer.hacktivis.me/users/lanodan"
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
curl -H "Accept: application/activity+json" https://lemmy.ml/u/nutomic | jq \
|
||||
> crates/apub/assets/lemmy-person.json
|
||||
curl -H "Accept: application/activity+json" https://queer.hacktivis.me/users/lanodan | jq \
|
||||
> crates/apub/assets/pleroma-person.json
|
Loading…
Reference in New Issue