1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

corrected ItemIDs in several examples and added explanatory sentence

This commit is contained in:
stpeter 2010-09-10 18:18:05 -06:00
parent f3ee31e550
commit d02f61f9ea

View File

@ -177,7 +177,7 @@
<p>If the avatar will be made available via HTTP instead of a pubsub data node, the publisher MUST either verify that the avatar exists at the HTTP URL or publish it via standard HTTP methods (such methods are out of scope for this specification; refer to <cite>RFC 2616</cite>).</p>
</section2>
<section2 topic='User Publishes Metadata Notification' anchor='process-pubmeta'>
<p>Whenever the publisher wishes to change its current avatar, it MUST update the metadata node.</p>
<p>Whenever the publisher wishes to change its current avatar, it MUST update the metadata node. As with the data node, the publisher MUST ensure that the value of the pubsub ItemID is a SHA-1 hash of the data for the "image/png" content-type (the match between the ItemID of the data node and metadata node is used by the subscriber to determine if a locally cached copy can be displayed).</p>
<p>The following example shows metadata specifying avatar data that is available in only one format ("image/png") and accessible only at the data node.</p>
<example caption='Publishing avatar metadata'><![CDATA[
<iq type='set' from='juliet@capulet.lit/chamber' id='publish2'>
@ -205,7 +205,7 @@
<metadata xmlns='urn:xmpp:avatar:metadata'>
<info bytes='23456'
height='64'
id='222f4b3c50d7b0df729d299bc6f8e9ef9066971f'
id='357a8123a30844a3aa99861b6349264ba67a5694'
type='image/gif'
url='http://avatars.example.org/happy.gif'
width='64'/>
@ -420,19 +420,19 @@
width='64'/>
<info bytes='12345'
height='64'
id='111f4b3c50d7b0df729d299bc6f8e9ef9066971f'
id='e279f80c38f99c1e7e53e262b440993b2f7eea57'
type='image/png'
url='http://avatars.example.org/happy.png'
width='64'/>
<info bytes='23456'
height='64'
id='222f4b3c50d7b0df729d299bc6f8e9ef9066971f'
id='357a8123a30844a3aa99861b6349264ba67a5694'
type='image/gif'
url='http://avatars.example.org/happy.gif'
width='64'/>
<info bytes='78912'
height='64'
id='333f4b3c50d7b0df729d299bc6f8e9ef9066971f'
id='03a179fe37bd5d6bf9c2e1e592a14ae7814e31da'
type='image/mng'
url='http://avatars.example.org/happy.mng'
width='64'/>