indieweb / mention-client-php

Client library for sending webmention and pingback notifications
https://indieweb.org/webmention
97 stars 19 forks source link

2 updates to functionality and 1 bug fix #14

Closed dissolve closed 8 years ago

dissolve commented 10 years ago

KyleWM is using a webmention endpoint as a relative url '/webmention' which obviously was not working. I added a bit to check if the endpoint is relative and correct it if so.

I added an ability to return the text from the debug messages by a call rather than only output to console.

I added the ability to get back any URLs returned by webmention clients. This is very useful for brid.gy integration as I get the syndication links it returns to me.

kylewm commented 8 years ago

The library has been pretty significantly refactored since this PR was filed (1.5 years ago)... These days it does support relative endpoints, and it returns the POST response to sending a webmention, so you should be able to get the headers from Bridgy.

If the other changes are still needed, unfortunately I think the only way to do it would be to make them again starting with the current codebase.