Just print the author and comments as simple text (not as .gph). - 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 4ec766814ea10f6abd242a87e5fa143e042c116d
(DIR) parent f4848a2cd89e7068686ee674ea69eae0df125966
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 21 Aug 2018 00:01:22
Just print the author and comments as simple text (not as .gph).
Diffstat:
instagram/comments.cgi | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff -r f4848a2cd89e -r 4ec766814ea1 instagram/comments.cgi
--- a/instagram/comments.cgi Mon Aug 20 23:58:11 2018 +0200
+++ b/instagram/comments.cgi Tue Aug 21 00:01:22 2018 +0200
@@ -1,5 +1,6 @@
#!/bin/sh
+
CGI="/cgi/instagram/user.dcgi"
@@ -11,10 +12,7 @@
/usr/pkg/bin/jq -r '
.entry_data.PostPage[].graphql.shortcode_media |
.edge_media_to_comment | .edges[] |
- ( "[1|" + "@" +
- ( .node.owner.username | gsub("\\|"; "\\|") ) + "|" +
- "'"${CGI}?"'" + ( .node.owner.username | gsub("\\|"; "\\|") ) +
- "|server|port]",
- "t" + .node.text,
- "t" )
+ ( "@\(.node.owner.username) writes:",
+ .node.text,
+ "" )
'