]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/api_read.builder
Don't remove language prefixes from wikipedia tags
[rails.git] / app / views / user / api_read.builder
index d25ff9f64046b2b84cd22629ff2dffbcde36a9a6..db7bcc2b7bf98953f2326d9f810db6f5a552ee1a 100644 (file)
@@ -6,9 +6,12 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
     if @this_user.description
       xml.tag! "description", @this_user.description
     end
-    xml.tag! "contributor-terms",
-        :agreed => !!@this_user.terms_agreed,
-        :pd => !!@this_user.consider_pd
+    if @user && @user == @this_user
+      xml.tag! "contributor-terms", :agreed => !!@this_user.terms_agreed,
+                                    :pd => !!@this_user.consider_pd
+    else
+      xml.tag! "contributor-terms", :agreed => !!@this_user.terms_agreed
+    end
     if @this_user.image.file?
       xml.tag! "img", :href => "http://#{SERVER_URL}#{@this_user.image.url}"
     end