summaryrefslogtreecommitdiff
path: root/crawler/post_process.go
diff options
context:
space:
mode:
authorhorus_arch2018-02-17 15:22:51 +0100
committerhorus_arch2018-02-17 15:22:51 +0100
commit8a94fd9d4b54e05ecd11ce4bc1fd9b0feb92b239 (patch)
tree224cb505fcc05748cc23b131607194c0dfaec8bc /crawler/post_process.go
parentfc83917d623228b09191f178062e59fad0722795 (diff)
downloadalkobote-8a94fd9d4b54e05ecd11ce4bc1fd9b0feb92b239.tar.gz
Sets config option to disable url shorter. (crawler)
Diffstat (limited to 'crawler/post_process.go')
-rw-r--r--crawler/post_process.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawler/post_process.go b/crawler/post_process.go
index 4688cc8..40845b9 100644
--- a/crawler/post_process.go
+++ b/crawler/post_process.go
@@ -10,7 +10,13 @@ import (
func (app *App) post_process() error {
- return app.short_url()
+ if app.Config.DisableURLShorter {
+ log.Debug("post_process.go: URL Shorter is disabled (via config)")
+ return nil
+ } else {
+ return app.short_url()
+ }
+
}
func (app *App) short_url() error {