Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support expanded Object representations and not just string/url #722

Open
git-marijus opened this issue Dec 30, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@git-marijus
Copy link

commented Dec 30, 2018

Here is the request json:

{
  "@context":[
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1",
    "https://hub.somaton.com/apschema/v1.2"
  ],
  "id":"https://hub.somaton.com/follow/1335",
  "type":"Follow",
  "actor":{
    "type":"Person",
    "id":"https://hub.somaton.com/channel/testc1",
    "preferredUsername":"testc1",
    "name":"testc1",
    "icon":{
      "type":"Image",
      "mediaType":"image/png",
      "url":"https://hub.somaton.com/photo/profile/l/28",
      "height":300,
      "width":300
    },
    "url":{
      "type":"Link",
      "mediaType":"text/html",
      "href":"https://hub.somaton.com/channel/testc1"
    },
    "inbox":"https://hub.somaton.com/inbox/testc1",
    "outbox":"https://hub.somaton.com/outbox/testc1",
    "followers":"https://hub.somaton.com/followers/testc1",
    "following":"https://hub.somaton.com/following/testc1",
    "endpoints":{
      "sharedInbox":"https://hub.somaton.com/inbox"
    },
    "publicKey":{
      "id":"https://hub.somaton.com/channel/testc1/public_key_pem",
      "owner":"https://hub.somaton.com/channel/testc1",
      "publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAu2rdf4ZVT5ScPr2epmBw\nKodj+PFwwlFmlK7bgovKVlTkyUoM8Uv4nGnzmtt3ew8J2DAXicqISjiRBI/0pNCq\nPMJqTtN8+aELtnUnWivSCOar5GuGeZRHoLtJp9nI3T7iG07NrMnAXjwVaRNm0+Wk\nOv7ht6645EeksGRIbRgbKZnx5liL/Shd9Dxx5sqZy4GM0dUcibxO0SDnauhM7JJR\nn43QBgK/8T3g6ZiO4jYiztCQRzrdLgWhAPvX290AMtO8UBhwBm5a2vIsMAZvdVLs\nvbTReJj8X2N+GArAcFdCSaARWN9mlpKyN5PJn2ItMWmcbCchwDcEI45edgDSWSNx\nALKyqqboCgI71nFHGD8Ws+LE77a4wJGGRYX8mb7J3xUCd4lHSqsp1z9wQ88Jvfwk\nDAmVX6buyiBR0gTlmBzIEwHjUUFrqKOnK2xQj0kD6Mi6TrSNlil6R6YzVGr06gYL\nL5fWvonMk836/FOTB4QDfacDnBmyKezSivLUPyN5+fUt9fuDW0BX8dEVCvow/dIc\nKWWem+1OzqoetT5p02QLsE8JS/ZEI5uQ6uFy17S3HCCT5DHQvKXnNDimqK4aaaQU\ngWMZQ+2C2GHoi9QaLtlwsA0EKWxH8zWmMFJ41mR2J8/WnTQJLYtOB4ifcsi53tZw\nnY8kD4uCu7ntlWLdvw8omGsCAwEAAQ==\n-----END PUBLIC KEY-----\n"
    },
    "nomadicLocations":[
      {
        "id":"https://hub.somaton.com/locs/testc1",
        "type":"nomadicLocation",
        "locationAddress":"acct:testc1@hub.somaton.com",
        "locationPrimary":true,
        "locationDeleted":false
      }
    ]
  },
  "object":"https://pixelfed.social/users/motedting",
  "to":[
    "https://pixelfed.social/users/motedting"
  ],
  "signature":{
    "@context":[
      "https://www.w3.org/ns/activitystreams",
      "https://w3id.org/security/v1"
    ],
    "type":"RsaSignature2017",
    "nonce":"034d9b243b5930e65246b411e2d796c3aca94fd28395710deef95457ef7f2984",
    "creator":"https://hub.somaton.com/channel/testc1/public_key_pem",
    "created":"2018-12-30T01:59:48Z",
    "signatureValue":"OlYg5mFeTNMWgwmCJpgfTkjVcY3zmz1bzGKuLrNlglZHW88et9pUMK0lmQF63/iSZuEfmYgdmScohXpnt042rN9D2dcqaRoyhfggKlzXE3kouCPVUrNwMV/rFCuqiPid4kRugJULS1dLYyNXz7HvTVvl8HYKyMNKqZcZMdJrKoUYr6EgWesm5G8EeqxJTUDQ3M8rrmvz/+lMAmabmv6WOrTqXiLOE4VPpkmaEyGZasXWceoIFSt1280sQ0Gr6m+WCU/kG7/etgOFGfLi63MwBh/134Dueag5DfO61yAvuFMTUHcaMeJ/XHT4ck4xtDXQBLGhdaJeFuFIqp9GBaBrjGRWSe1SyJFR6qT+gk9lJKLKoUQXH4zc0NqlpUYYGZZRlBt2bI8FF8Sgte1tUa6U4nZHAScRcPPfQBqeiV/RNdbz15P6uhVqFh6x3Vlgis6CDnRnHgGWE/qXzqQWtcfDyxmQxAxY+WLWECtJOeEUDDR6OaGpiKIXOE82OIgkYsfGBFT/On++B2FT0jkrNLYDTN9r/j8QNGwc6XWA8zbax8I/CO5OYYZBo+goqHRaQYErffsvTX/OkHokQ59QebfNaXsp+dRKdociVxUfv8qTmTVqlVoyK5gLllu7GpDo+a5oJ7BCYm1oiHGEDGLeLvLuIURiBGXxzXfsAxAVNBOmBnA="
  }
}
@dansup

This comment has been minimized.

Copy link
Member

commented Jan 6, 2019

@git-marijus Yes, this will be fixed in an upcoming commit. Pixelfed expects actor to be a string/valid url, and will be updated to support an actor object!

@trwnh trwnh added this to the 0.8.0 milestone Mar 3, 2019

@git-marijus

This comment has been minimized.

Copy link
Author

commented Mar 18, 2019

I just did some tests and it seems we are a little further now. Getting a 400 instead of 500 now.
Do you need any further infos?

@trwnh trwnh changed the title Follow request from Hubzilla returns error 500 Support expanded Object representations and not just string/url Mar 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.