mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
add function specification, convert string() to binary(), fix pubsub.hrl (thanks to Karim Gemayel)
This commit is contained in:
parent
70cdcfcae1
commit
378b8a60c6
File diff suppressed because it is too large
Load Diff
@ -319,7 +319,7 @@ get_entity_subscriptions(Host, JID) ->
|
||||
(
|
||||
NodeIdx :: nodeIdx())
|
||||
-> {'result', []
|
||||
| [{Entity::fullUsr(), 'none'}]
|
||||
%| [{Entity::fullUsr(), 'none'}]
|
||||
| [{Entity::fullUsr(), Subscription::subscription(), SubId::subId()}]}
|
||||
).
|
||||
|
||||
|
@ -824,7 +824,7 @@ get_entity_subscriptions(Host, #jid{node = U, domain = S, resource = R} = _JID)
|
||||
(
|
||||
NodeIdx :: nodeIdx())
|
||||
-> {'result', []
|
||||
| [{Entity::fullUsr(), 'none'}]
|
||||
%| [{Entity::fullUsr(), 'none'}]
|
||||
%| [{Entity::fullUsr(), Subscription::subscription()}] %% still useful case ?
|
||||
| [{Entity::fullUsr(), Subscription::subscription(), SubId::subId()}]}
|
||||
).
|
||||
|
@ -55,7 +55,7 @@
|
||||
%%% Server = binary()
|
||||
%%% Resource = undefined.
|
||||
|
||||
-type(hostPEP() :: {User::binary(), Server::binary, Resource::undefined}).
|
||||
-type(hostPEP() :: {User::binary(), Server::binary(), Resource::undefined}).
|
||||
|
||||
|
||||
%%% @type host() = hostPubsub() | hostPEP().
|
||||
|
Loading…
Reference in New Issue
Block a user