diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-02-26 10:07:12 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-02-26 10:07:12 +0300 |
commit | c1439ddd5bff82292919774c224a2bf3c8f63258 (patch) | |
tree | cc80ebe280ac56fcdfa9656f8f03a1938f53bdeb /src/node_flat_sql.erl | |
parent | Don't pass empty resource to jid:make() (diff) |
Get rid of jid:to_string/1 and jid:from_string/1
Diffstat (limited to 'src/node_flat_sql.erl')
-rw-r--r-- | src/node_flat_sql.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_flat_sql.erl b/src/node_flat_sql.erl index 2df1ffb26..d3294cc68 100644 --- a/src/node_flat_sql.erl +++ b/src/node_flat_sql.erl @@ -960,7 +960,7 @@ update_subscription(Nidx, JID, Subscription) -> -spec decode_jid(SJID :: binary()) -> ljid(). decode_jid(SJID) -> - jid:tolower(jid:from_string(SJID)). + jid:tolower(jid:decode(SJID)). -spec decode_affiliation(Arg :: binary()) -> atom(). decode_affiliation(<<"o">>) -> owner; @@ -988,11 +988,11 @@ decode_subscriptions(Subscriptions) -> -spec encode_jid(JID :: ljid()) -> binary(). encode_jid(JID) -> - jid:to_string(JID). + jid:encode(JID). -spec encode_jid_like(JID :: ljid()) -> binary(). encode_jid_like(JID) -> - ejabberd_sql:escape_like_arg_circumflex(jid:to_string(JID)). + ejabberd_sql:escape_like_arg_circumflex(jid:encode(JID)). -spec encode_host(Host :: host()) -> binary(). encode_host({_U, _S, _R} = LJID) -> encode_jid(LJID); |