Display instance version, if field is set
authorMikael Berthe <mikael@lilotux.net>
Fri, 28 Apr 2017 11:49:22 +0200
changeset 18 7a4b57b3e66a
parent 17 ab1aa9652791
child 19 4c81f4393773
Display instance version, if field is set Requires latest madon package. (There seems to be a bug in Mastodon 1.3.1, it returns "Mastodon::VERSION")
printer/plain.go
--- a/printer/plain.go	Fri Apr 28 11:38:54 2017 +0200
+++ b/printer/plain.go	Fri Apr 28 11:49:22 2017 +0200
@@ -187,6 +187,7 @@
 	indentedPrint(w, indent, false, true, "Description", "%s", html2string(i.Description))
 	indentedPrint(w, indent, false, true, "URL", "%s", i.URI)
 	indentedPrint(w, indent, false, true, "Email", "%s", i.Email)
+	indentedPrint(w, indent, false, true, "Version", "%s", i.Version)
 	return nil
 }