From c374e17ba5387d3f9beea7555aa6ca1977f4f54f Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Wed, 22 Apr 2020 18:08:59 -0400 Subject: [PATCH] contact-view: redirect upon url case of avatar --- pkg/arvo/app/contact-view.hoon | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/arvo/app/contact-view.hoon b/pkg/arvo/app/contact-view.hoon index 9fdeebb6c5..97aa157291 100644 --- a/pkg/arvo/app/contact-view.hoon +++ b/pkg/arvo/app/contact-view.hoon @@ -187,10 +187,13 @@ =/ contact (contact-scry `^path`(snoc (flop t.path) name)) ?~ contact not-found:gen ?~ avatar.u.contact not-found:gen - ?. ?=(%octt -.u.avatar.u.contact) not-found:gen - =/ max-3-days ['cache-control' 'max-age=259200'] - =/ content-type ['content-type' content-type.u.avatar.u.contact] - [[200 [content-type max-3-days ~]] `octs.u.avatar.u.contact] + ?- -.u.avatar.u.contact + %url [[307 ['location' url.u.avatar.u.contact]~] ~] + %octt + =/ max-3-days ['cache-control' 'max-age=259200'] + =/ content-type ['content-type' content-type.u.avatar.u.contact] + [[200 [content-type max-3-days ~]] `octs.u.avatar.u.contact] + == :: [%'~groups' *] (html-response:gen index) ==