diff --git a/LICENSE b/LICENSE index 1ff7f37..23f31aa 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014 Manuel Martínez-Almeida +Copyright (c) 2017 deepzz deepzz.qi@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/disqus.go b/disqus.go index 857a0d3..76d4f39 100644 --- a/disqus.go +++ b/disqus.go @@ -24,7 +24,9 @@ type result struct { } func PostsCount() { - if setting.Conf.Disqus.PostsCount == "" || setting.Conf.Disqus.PublicKey == "" || setting.Conf.Disqus.ShortName == "" { + if setting.Conf.Disqus.PostsCount == "" || + setting.Conf.Disqus.PublicKey == "" || + setting.Conf.Disqus.ShortName == "" { return } baseUrl := setting.Conf.Disqus.PostsCount +