On Sat, 2010-09-18 at 20:30 -0400, Craig Andrews wrote:

> My account is on http://identi.ca/candrews. Let's say I'm browsing around
> teh intarwebs, and come across a notice at http://obscure.com/notice/123
> which I like. I am not subscribed to this obscure user's stream, nor do I
> want to - it's just a one off notice I like. Because the site is obscure,
> no one at identi.ca has subscribed to this user's stream, so
> http://obscure.com/notice/123 isn't known as a remote notice in
> identi.ca's database.
> 
> I would like to favorite http://obscure.com/notice/123 Ignore the fact
> that there is no UI to do so for now :-)



> 1. At the protocol level, can OStatus favor this notice? Or would
> subscription/previous awareness be required?

Yes, protocol is to send a Salmon "like" slap from candr...@identi.ca to 
u...@obscure.com.

> 2. If it is possible at the protocol level, at the StatusNet code level,
> how can we send that favor notification? (Again, ignoring the fact there
> is no UI to do so for now)

There's code to do this in the OStatus plugin.

> Background: I'm plotting how to make a Facebook-esq "Like" button - but
> based on StatusNet. And this is one part that I haven't been able to wrap
> my mind around yet.


This is something that matters quite a bit for me. Here's my rough idea
on the subject.

candr...@identi.ca can go to http://evan.status.net/ to subscribe to
e...@status.net's stream. Technically, how this works is that when you
click the "Subscribe" button, you enter your Webfinger URI (or HTTP
profile URI), and the StatusNet site does some LRDD or WebFinger
discovery on you. It finds a specific endpoint, the one for
subscription, and redirects your browser to that URL, with the URI of
e...@status.net as a parameter. (You can see the link template here:
http://identi.ca/main/xrd?uri=candr...@identi.ca ).

OExchange http://www.oexchange.org/ works very similarly. You provide an
ID, the service does discovery on that ID, and then redirects you to an
endpoint on your home server to complete the transaction.

I think that some of the other things you do on someone else's notice
(repeat, reply, fave) or profile page (message, nudge) could follow this
same pattern.

There are some tricky parts. First, showing you your current state w/r/t
that notice: have you repeated it? Have you faved it?

Second, the redirect-and-return UI is a little clunky compared to the
Ajax UI on your own site. It would be good to have a similar interface
without compromising security -- but that would complicate things.

Third, maintaining your identity. One way is for obscure.com to cookie
you (ostatususer=candr...@identi.ca) after your first successful
interaction and just use that identity in the future, skipping the "who
are you" step. Another would be for you to actually log in to
obscure.com using OpenID, but not associating with a local user account.

It's a pretty cool problem; I think we can come up with a pretty
straightforward solution.

In this particular case, I'd like whatever we provide to be in line with
OpenLike and stuff like that.

-Evan


________________________________________________________________________
Evan Prodromou, CEO
StatusNet Inc., 1124 rue Marie-Anne Est #32, Montreal, QC H2J 2T5
T: 438-380-4801 x101 C: 514-554-3826 W: http://evan.status.net/ E:
e...@status.net


_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to