aaronpk / webmention.io

Easily enable webmentions on any web site
https://webmention.io/
Other
776 stars 38 forks source link

API: include uid in returned data #59

Open snarfed opened 8 years ago

snarfed commented 8 years ago

we noticed today that /api/mentions.json doesn't return the uid property to clients. this is unfortunate because it makes some clients (e.g. https://waterpigs.co.uk/services/webmention-io-comments/ , http://stream.thatmustbe.us/ ) fall back to de-duping on url, which is usually unique, but not always.

specifically, most silos don't have unique permalinks for likes or comments, so bridgy often uses the post's url, which will obviously be shared across its comments and/or likes. bridgy sometimes fabricates synthetic unique permalinks (snarfed/bridgy#215), but not consistently for all responses yet.

fwiw, the mf2, mf1, and hCard/vCard specs/wiki all consistently say that uid should be (universally) unique, but not that url necessarily has to be.

cc @dissolve @tantek @kevinmarks

dissolve commented 8 years ago

Stream.thatmustbe.us does not dedupe but rather shows a list of apparent dupes due to author being ignored as invalid #60