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

mp-destination command should use `destination` in the config #3

Open
aaronpk opened this issue Feb 20, 2018 · 2 comments

Comments

2 participants
@aaronpk
Copy link
Member

commented Feb 20, 2018

If the Micropub server supports writing to more than one website, the server can return a list of destinations the client can write to when creating a new post.

To match the use of the syndicate-to property, the server should return the list of destinations as destination, since the command the client would use is mp-destination.

https://www.w3.org/TR/micropub/#syndication-targets

An example query response:

/micropub?q=config

{
  "media-endpoint": "https://micro.blog/micropub/media",
  "destination": [
    {
      "uid": "https://aaronpk.micro.blog/",
      "name": "aaronpk.micro.blog"
    }    
  ]  
}

Then in the Micropub request, the client would use the property mp-destination to indicate which to post to.

@aaronpk aaronpk added this to Current Issues in Destination Feb 20, 2018

@aaronpk

This comment has been minimized.

Copy link
Member Author

commented Feb 20, 2018

@manton is Micro.blog or any client doing anything with this currently? I see that micro.blog returns this info already.

I think this would also solve my next challenge for myself while building out my reader.

@manton

This comment has been minimized.

Copy link

commented Feb 21, 2018

@aaronpk Micro.blog returns the destinations (I just fixed this to remove the mp- in the response JSON) and also supports passing mp-destination in the POST, but I don't think any clients are using it yet. I plan to use this in the Micro.blog iOS app and in Sunlit.

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.