Skip to content

Commit 67e4b56

Browse files
committed
XEP-0060: Explicitely say that items are returned in chronological order.
1 parent 766ed2e commit 67e4b56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xep-0060.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
&pgmillard;
5050
&stpeter;
5151
&ralphm;
52+
<revision>
53+
<version>1.22.1</version>
54+
<date>2021-11-06</date>
55+
<initials>jp</initials>
56+
<remark><p>Explicitely say that items are returned in chronological order.</p></remark>
57+
</revision>
5258
<revision>
5359
<version>1.22.0</version>
5460
<date>2021-09-07</date>
@@ -2215,6 +2221,7 @@ And by opposing end them?
22152221
</section3>
22162222
<section3 topic='Returning All Items' anchor='subscriber-retrieve-returnall'>
22172223
<p>The service then SHOULD return all available items at the node, although it MAY truncate the result set if a large number of items has been published (see next section) and naturally it cannot return items that have been deleted, expired, etc.</p>
2224+
<p>By default, items are returned in chronological order (from oldest published to most recent published). This order can be explicitely modified by an extensions like &xep0413;.</p>
22182225
<example caption='Service returns all items'><![CDATA[
22192226
<iq type='result'
22202227
from='pubsub.shakespeare.lit'
@@ -2291,6 +2298,7 @@ And by opposing end them?
22912298
<section3 topic='Returning Some Items' anchor='subscriber-retrieve-returnsome'>
22922299
<p>A node may have a large number of items associated with it, in which case it may be problematic to return all of the items in response to an items request. In this case, the service SHOULD return some of the items and note that the list of items has been truncated by including a &xep0059; notation.</p>
22932300
<p>A Pubsub entity supporting &xep0059; SHOULD include a feature of "http://jabber.org/protocol/pubsub#rsm" in its disco#info response, to make it clear that the RSM feature is for PubSub, and not for e.g., &xep0313;.</p>
2301+
<p>In the same way as for <link url="#subscriber-retrieve-returnal">Returning All Items</link>, items are by default returned in chronological order globally and inside pages. This order can be modified by extensions such as &xep0413;.</p>
22942302
<example caption='Service returns some items via result set management'><![CDATA[
22952303
<iq type='result'
22962304
from='pubsub.shakespeare.lit'
@@ -2439,6 +2447,7 @@ O, what a rogue and peasant slave am I!
24392447
</section3>
24402448
<section3 topic='Requesting the Most Recent Items' anchor='subscriber-retrieve-requestrecent'>
24412449
<p>A service MAY allow entities to request the most recent N items by using the 'max_items' attribute. When max_items is used, implementations SHOULD return the N most recent (as opposed to the N oldest) items. (Note: A future version of this specification may recommend the use of <cite>XEP-0059</cite> instead of the 'max_items' attribute.)</p>
2450+
<p>Like for <link url="#subscriber-retrieve-returnal">Returning All Items</link> and <link url="#subscriber-retrieve-returnsome">Returning Some Items</link>, items are returned in chronological order.</p>
24422451
<example caption='Subscriber requests two most recent items'><![CDATA[
24432452
<iq type='get'
24442453
from='[email protected]/barracks'

0 commit comments

Comments
 (0)