]> granicus.if.org Git - ejabberd/commitdiff
Fix result of XEP-0060 ยง6.5.9.12 (#2288)
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 16 Mar 2018 16:48:42 +0000 (17:48 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 16 Mar 2018 16:48:42 +0000 (17:48 +0100)
src/mod_pubsub.erl

index 88daf721ce356aeb8d1f6ea32ad2b56fddbad498..eb5ee8ccb964cb187dbc72c0e0326c8f4b122574 100644 (file)
@@ -2026,8 +2026,10 @@ get_items(Host, Node, From, SubId, _MaxItems, ItemIds, RSM) ->
            {result,
             #pubsub{items = #ps_items{node = Node,
                                       items = itemsEls([Item])}}};
-       Error ->
-           Error
+       _ ->
+           {result,
+            #pubsub{items = #ps_items{node = Node,
+                                      items = itemsEls([])}}}
     end.
 
 get_items(Host, Node) ->