X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ad434992058ed270b3380d882b91c7f2a91434be..a5e8b4cb88c9e933955cfd6beea01fb14ffe13f5:/app/views/user/api_read.builder diff --git a/app/views/user/api_read.builder b/app/views/user/api_read.builder index 71bf29208..e97695420 100644 --- a/app/views/user/api_read.builder +++ b/app/views/user/api_read.builder @@ -41,6 +41,11 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do @this_user.languages.split(",") { |lang| xml.tag! "lang", lang } end end + xml.tag! "messages" do + xml.tag! "received", :count => @this_user.messages.size, + :unread => @this_user.new_messages.size + xml.tag! "sent", :count => @this_user.sent_messages.size + end end end end