fix double if in hcard controller...
This commit is contained in:
parent
aff76a4c30
commit
c46cc39b2a
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ module DiasporaFederation
|
||||||
person_hcard = DiasporaFederation.callbacks.trigger(:person_hcard_fetch, params[:guid])
|
person_hcard = DiasporaFederation.callbacks.trigger(:person_hcard_fetch, params[:guid])
|
||||||
|
|
||||||
if person_hcard.nil?
|
if person_hcard.nil?
|
||||||
render nothing: true, status: 404 if person_hcard.nil?
|
render nothing: true, status: 404
|
||||||
else
|
else
|
||||||
logger.info "hcard profile request for: #{person_hcard.nickname}:#{person_hcard.guid}"
|
logger.info "hcard profile request for: #{person_hcard.nickname}:#{person_hcard.guid}"
|
||||||
render html: person_hcard.to_html.html_safe
|
render html: person_hcard.to_html.html_safe
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue