Giter Site home page Giter Site logo

Comments (4)

dariusk avatar dariusk commented on June 26, 2024

Thanks, I've opened a PR that fixes the guids.

For the dereferenceable URIs, what should be served? Just the objects themselves? If someone goes to the Note id uri, will they just get the Note sub-object, and if someone goes to the Create id uri, they get served the Create object with the note sub-object?

Can I leave out dereferencing the Create and just dereference the Note?

from express-activitypub.

puckipedia avatar puckipedia commented on June 26, 2024

for the Note's ID, you MUST (RFC2119) serve the Note, and for the Create, you MAY return the Create with the Note inside, or just the Create.

from express-activitypub.

dariusk avatar dariusk commented on June 26, 2024

@puckipedia I think the commit I just added addresses your concern. For example, if I send a Note with the id of https://2914e630.ngrok.io/m/78c20ffafb39e7fedf91e0916d6ed893, if you make a GET request to the URL with your browser you get the following JSON object (that URL won't work because I'm testing using a temporary domain):

{
"id": "https://2914e630.ngrok.io/m/78c20ffafb39e7fedf91e0916d6ed893",
"type": "Note",
"published": "2018-09-25T03:06:47.111Z",
"attributedTo": "https://2914e630.ngrok.io/u/tester",
"content": "Just testing this, please ignore.",
"to": "https://www.w3.org/ns/activitystreams#Public"
}

This goes for both Create and Note objects. However, it doesn't address the boost issue, at least on Mastodon (if I boost this status from an account X on SERVER1, I can't see the boost from account Y on SERVER2 even though I follow X@SERVER1).

from express-activitypub.

dariusk avatar dariusk commented on June 26, 2024

Closed in #2.

from express-activitypub.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.