Print biography only if it is present. - gophercgis - Collection of gopher CGI/DCGI for geomyidae
(HTM) hg clone https://bitbucket.org/iamleot/gophercgis
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) changeset b4488d1a29f22cc014c15ba8282f20cab6830e43
(DIR) parent f6e7d750cf8777a849cfe39c0cb10b34bc6b1879
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 7 Aug 2018 20:41:50
Print biography only if it is present.
Diffstat:
instagram/user.dcgi | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff -r f6e7d750cf87 -r b4488d1a29f2 instagram/user.dcgi
--- a/instagram/user.dcgi Tue Aug 07 20:35:37 2018 +0200
+++ b/instagram/user.dcgi Tue Aug 07 20:41:50 2018 +0200
@@ -26,8 +26,12 @@
"t",
"t@" + .username + " - " + .full_name,
"t",
- "t" + .biography,
- "t",
+ if .biography != "" then
+ "t" + .biography,
+ "t"
+ else
+ empty
+ end,
"tFollowed by: " + ( .edge_followed_by.count | tostring ),
"tFollows: " + ( .edge_follow.count | tostring ),
"t",