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 · 3 comments
Open

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

aaronpk opened this issue Feb 20, 2018 · 3 comments
Projects

Comments

@aaronpk
Copy link
Member

@aaronpk aaronpk 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
Copy link
Member Author

@aaronpk aaronpk 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
Copy link

@manton manton 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.

@manton
Copy link

@manton manton commented Jul 28, 2020

Just an update since it has been a couple of years: Micro.blog supports this in all its apps, including the new version of Sunlit and on the server. Every Micro.blog account can have a test blog, and many accounts have extra blogs for a podcast, so it's pretty common to have a response like this from q=config (I also add a couple Micro.blog-specific fields with a microblog- prefix):

{
  "media-endpoint": "https://micro.blog/micropub/media",
  "destination": [
    {
      "uid": "https://manton.micro.blog/",
      "name": "www.manton.org",
      "microblog-audio": false,
      "microblog-default": true
    },
    {
      "uid": "https://manton-test.micro.blog/",
      "name": "manton-test.micro.blog",
      "microblog-audio": false,
      "microblog-default": false
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Destination
Current Issues
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants