X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7599f98957334d1924550205f7ba12a726de7eb0..d377e8b4f23e6bad925eb2efa904baa7e1531fa6:/app/views/user/api_read.builder?ds=sidebyside 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