<p>When interacting with an user, like replying to some comments or adding photo tags, this remote user has no way to get notifications of what happen about him. This specification defines a method for managing such notifications.</p>
<p>If the event to notify is listed in the following array, the client MUST consider using the defined event type:</p>
<tablecaption='Notification types'>
<tr>
<th>Type Name</th>
<th>Definition</th>
</tr>
<tr>
<td>comment</td>
<td>The sender replied to some comments.</td>
</tr>
<tr>
<td>like</td>
<td>The sender liked an item.</td>
</tr>
<tr>
<td>quote</td>
<td>The sender quoted the user in a post.</td>
</tr>
<tr>
<td>wall</td>
<td>The sender published an entry on the user's wall.</td>
</tr>
<tr>
<td>photo</td>
<td>The sender tagged the user in a photo.</td>
</tr>
<tr>
<td>video</td>
<td>The sender tagged the user in a video.</td>
</tr>
</table>
</section2>
<section2topic='Publishing a notification'anchor='notif_publish'>
<p>If Romeo wants to notify all the users who posted a comment in a comment node, his client MUST send a payload to every user's PEP node.</p>
<p>The notification type is stored in the "title" attribute of the "link" element, also containing the URI ("href" attribute) to the target item. The notification text content is stored in the "content" element.</p>
<examplecaption="Publishing a notification"><![CDATA[
<p>The client SHOULD check that the author informations (provided in the "author" element) are valid, by checking that the "publisher" item attribute value matches the "uri" element value. If there is a difference, the notification MIGHT NOT be displayed, and the client SHOULD remove it (see the <linkurl='#notif_remove'>Removing a notification</link> section of this document).</p>
</section1>
<section1topic='XML Schema'anchor='schema'>
<p>This specification re-uses the schema for the Atom content format, i.e., the 'http://www.w3.org/2005/Atom' namespace (see <cite>RFC 4287</cite>).</p>
</section1>
<section1topic='Acknowledgements'anchor='ack'>
<p>Thanks to Laurent Eschenauer for his initial idea.</p>