# HG changeset patch # User Kim Alvefur # Date 1687119804 -7200 # Node ID d7667d9ad96a92b626d264712fd43353c507802f # Parent dfade0e3893044f3d1413f5bbcef6d6a6229e5ca mod_rest: Include full_jid property on origin Fixes permission check in disco#info query to your own account, where the 'to' would have been stripped since it equals the account JID, leaving mod_disco passing nil, which triggers an error in module:may() diff -r dfade0e38930 -r d7667d9ad96a mod_rest/mod_rest.lua --- a/mod_rest/mod_rest.lua Sun Jun 18 15:28:23 2023 +0200 +++ b/mod_rest/mod_rest.lua Sun Jun 18 22:23:24 2023 +0200 @@ -308,6 +308,7 @@ return post_errors.new("unauthz"); end from = jid.join(origin.username, origin.host, origin.resource); + origin.full_jid = from; origin.type = "c2s"; origin.log = module._log; end