[Standards] microblogging maintainer :)

Florent Le Coz louiz at louiz.org
Mon Dec 20 07:18:37 UTC 2010


On 12/04/2010 07:55 PM, Thomas Baquet wrote:
> I've written a first draft (full of awful errors, certainly); what do u
> think?
> 

Hello,

Some comments on this draft (sorry if some of them are pointless. I'm
still not an XMPP expert):

- Do you think this should be part of the XEP-0277 or should this be a
separate XEP?

- I don’t understand why the publishing entity would decide to create
the reply-node on an other node than where the item is being published.
Wouldn't it be simpler to just create the reply-node as a child of the
node where the item is published?
This imply, for example, that the microblogging node
(urn:xmpp:microblog:0) MUST be of type collection, if the service wants
to permit replies to microblog-posts. Isn't it?


- I think "allow-reply" and "reply" are a bit redundant.



	To allow users to reply to an item, the publishing entity MUST include
a <reply /> element as a child of the <item /> element it wishes to
publish.  This <reply /> element MUST be empty and MAY contain a "node"
attribute indicating the child node the server MUST create and where
replies to this item SHOULD be published.  If this element doesn’t
contain any "node" attribute, this reply-node defaults to the item’s id.

Example 1. User publish an item on a node
<iq type='set'
  from='hamlet at denmark.lit/blogbot'
  to='pubsub.shakespeare.lit'
  id='publish1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <publish node='princely_musings'>
      <item id='bnd81g37d61f49fgn581'>
        <entry xmlns='http://www.w3.org/2005/Atom'>
	  <!-- SNIP -->
        </entry>
        <reply node="reply-bnd81g37d61f49fgn581" />
      </item>
    </publish>
  </pubsub>
</iq>

Example $$. Server will reply:
<iq type='result'
  from='pubsub.shakespeare.lit'
  to='francisco at denmark.lit/barracks'
  id='items1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <items node='princely_musings'>
      <item id='bnd81g37d61f49fgn581'>
        <entry xmlns='http://www.w3.org/2005/Atom'>
	  <!-- SNIP -->
        </entry>
	<reply node="princely_musings/reply-bnd81g37d61f49fgn581" />
      </item>
    </items>
  </pubsub>
</iq>

With the help of this XEP, we could have two microblogging models.
- The twitter/identi.ca-like model:
items are published with an Open access model, with no <reply />
element. User can still “respond” in their own microblog, as defined
currently in 0277.
- The Facebook/diaspora-like model:
items are published with a Roster access model, with a <reply /> element
as defined above.

This second microblogging model could be defined in an additional XEP.
(for a total of 3 XEPs : 0277, Reply On Pubsub, Microblog Second Model)

-- 
Florent Le Coz



More information about the Standards mailing list