slack status without the slack status.zzstoatzz.io/
quickslice

Merge pull request #39 from zzstoatzz/fix/empty-display-name-fallback

Fix empty display_name fallback to handle

authored by

nate nowack and committed by
GitHub
9d9ae0b7 c1c5740f

+1 -1
+1 -1
templates/feed.html
··· 77 77 {% if let Some(p) = &profile %} 78 78 <div class="session-card"> 79 79 <div class="session-info"> 80 - <span>logged in as <strong>{% if let Some(name) = &p.display_name %}{{ name }}{% else %}{% if let Some(h) = &p.handle %}{{ h }}{% else %}{{ p.did }}{% endif %}{% endif %}</strong></span> 80 + <span>logged in as <strong>{% if let Some(name) = &p.display_name %}{% if !name.is_empty() %}{{ name }}{% else %}{% if let Some(h) = &p.handle %}{{ h }}{% else %}{{ p.did }}{% endif %}{% endif %}{% else %}{% if let Some(h) = &p.handle %}{{ h }}{% else %}{{ p.did }}{% endif %}{% endif %}</strong></span> 81 81 <div class="session-actions"> 82 82 <a href="/" class="button button-primary">your status</a> 83 83 <form action="/logout" method="get" style="display: inline;">