- xml.tag! "user", :id => @this_user.id,
- :display_name => @this_user.display_name,
- :account_created => @this_user.creation_time.xmlschema 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 @this_user.image.file?
- xml.tag! "img", :href => "http://#{SERVER_URL}#{@this_user.image.url}"
+ xml.tag! "user", :id => @user.id,
+ :display_name => @user.display_name,
+ :account_created => @user.creation_time.xmlschema do
+ xml.tag! "description", @user.description if @user.description
+ if current_user && current_user == @user
+ xml.tag! "contributor-terms", :agreed => @user.terms_agreed.present?,
+ :pd => @user.consider_pd
+ else
+ xml.tag! "contributor-terms", :agreed => @user.terms_agreed.present?