fix double if in hcard controller...

This commit is contained in:
Benjamin Neff 2015-08-01 01:09:10 +02:00
parent aff76a4c30
commit c46cc39b2a

View file

@ -10,7 +10,7 @@ module DiasporaFederation
person_hcard = DiasporaFederation.callbacks.trigger(:person_hcard_fetch, params[:guid])
if person_hcard.nil?
render nothing: true, status: 404 if person_hcard.nil?
render nothing: true, status: 404
else
logger.info "hcard profile request for: #{person_hcard.nickname}:#{person_hcard.guid}"
render html: person_hcard.to_html.html_safe