summary refs log tree commit diff stats
path: root/summarize
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-03-22 14:05:00 +0530
committerAndinus <andinus@nand.sh>2020-03-22 14:12:24 +0530
commit36bd8f2361e071e9f1d612b5e88b8ac713b8418c (patch)
tree51938ebf2c303bfb817bf4bcb9ba465f56cf4f86 /summarize
parent9fde6e5a892b228c2d64af05b02380847573c832 (diff)
downloadindus-36bd8f2361e071e9f1d612b5e88b8ac713b8418c.tar.gz
Add version command & use extract instead of description
Description is nice but most of the words that I lookup have better
explanation in extract.
Diffstat (limited to 'summarize')
-rw-r--r--summarize/wikipedia.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/summarize/wikipedia.go b/summarize/wikipedia.go
index c4a5050..f74c753 100644
--- a/summarize/wikipedia.go
+++ b/summarize/wikipedia.go
@@ -17,8 +17,8 @@ func Wikipedia(w fetch.Wiki) (notification.Notif, error) {
 	// with other page types to get summary.
 	switch w.Type {
 	case "standard":
-		n.Title = fmt.Sprintf("%s - Wikipedia", w.Title)
-		n.Message = w.Description
+		n.Title = fmt.Sprintf("%s", w.Title)
+		n.Message = w.Extract
 	default:
 		err = fmt.Errorf("Summarizing wikipedia response failed")
 	}