fix(api_mgmt): use `emqx_topic:join` for correct construction of topics

This commit is contained in:
Thales Macedo Garitezi 2023-07-18 10:19:55 -03:00
parent 1fdcfba629
commit 91cd88c136
1 changed files with 2 additions and 2 deletions

View File

@ -188,9 +188,9 @@ format(WhichNode, {{Topic, _Subscriber}, Options}) ->
). ).
get_topic(Topic, #{share := <<"$queue">> = Group}) -> get_topic(Topic, #{share := <<"$queue">> = Group}) ->
filename:join([Group, Topic]); emqx_topic:join([Group, Topic]);
get_topic(Topic, #{share := Group}) -> get_topic(Topic, #{share := Group}) ->
filename:join([<<"$share">>, Group, Topic]); emqx_topic:join([<<"$share">>, Group, Topic]);
get_topic(Topic, _) -> get_topic(Topic, _) ->
Topic. Topic.