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

Store Webmention Responses in Post Meta #23

Closed
dshanske opened this issue May 4, 2014 · 6 comments
Closed

Store Webmention Responses in Post Meta #23

dshanske opened this issue May 4, 2014 · 6 comments

Comments

@dshanske
Copy link
Collaborator

dshanske commented May 4, 2014

Use case for Bridgy....

"A POST to http://brid.gy/publish/webmention will return 200 OK on success with a JSON response containing at least a url field that points to the silo object that it operated on. For Twitter favorites and Facebook likes and event RSVPs, this is the tweet, post, or event. If a new object was created, e.g. a Facebook post or comment or Twitter tweet, @-reply, or retweet, there will also be an id field with the silo id of that object."

The json response can be extracted and the entire array attached to the post using the add_post_meta function in Wordpress.

This data can then be used by the theme or another plugin to add rel-syndication links.

@pfefferle
Copy link
Owner

The idea is good, but I am not sure if this should be part of the core plugin, because it is very brid.gy specific. The spec doesn't specify the response at all, so I think it would be cool to code a bird.gy plugin that hooks into the "send_webmention" action (if added a filter today bf62f8f#diff-a206f8eddc4eec457824d08af6ecd005R319)

what do you think @snarfed?

@dshanske
Copy link
Collaborator Author

dshanske commented May 5, 2014

This was the debate I was trying to figure out. Should the response be
loaded by the webmentions plugin and then retrieved by a Bridgy plugin or
aware theme or both be in a Bridgy plugin. That's why I filed it as an
issue. Sending data in the response is Bridgy specific, but doesn't have to
be.
On May 5, 2014 2:40 PM, "Matthias Pfefferle" notifications@github.com
wrote:

The idea is good, but I am not sure if this should be part of the core
plugin, because it is very brid.gy specific. The spec doesn't specify the
response at all, so I think it would be cool to code a bird.gy plugin
that hooks into the "send_webmention" action (if added a filter today
bf62f8f#diff-a206f8eddc4eec457824d08af6ecd005R319bf62f8f#diff-a206f8eddc4eec457824d08af6ecd005R319
)

what do you think @snarfed https://github.com/snarfed?


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-42222007
.

@snarfed
Copy link
Contributor

snarfed commented May 5, 2014

actually, the webmention spec strongly encourages a response body: The response body SHOULD include a URL that can be used to monitor the status of the request. lots of other existing implementations send one, including this plugin, p3k, webmention.io, and i think idno, so this probably isn't specific to bridgy.

@dshanske
Copy link
Collaborator Author

dshanske commented May 5, 2014

Either way, the filter addition allows for that and is probably better than
dumping it to mets as it allows for custom handling.
On May 5, 2014 3:09 PM, "Ryan Barrett" notifications@github.com wrote:

actually, the webmention spec strongly encourages a response bodyhttps://github.com/converspace/webmention/blob/master/README.md#sender-notifies-receiver:
The response body SHOULD include a URL that can be used to monitor the
status of the request.
lots of other existing implementations send one,
including this plugin, p3k, webmention.io, and i think idno, so this
probably isn't specific to bridgy.


Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-42225626
.

@snarfed
Copy link
Contributor

snarfed commented May 5, 2014

👍 filter (or hook) makes sense to me too.

@pfefferle
Copy link
Owner

Thanks for pointing me to the response body part. I will also change the response of the plugin to return a more useful information, like the url of the comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants