diff --git a/src/main/java/com/rultor/agents/github/StartsTalks.java b/src/main/java/com/rultor/agents/github/StartsTalks.java index 8405dab7f7..dc71060747 100644 --- a/src/main/java/com/rultor/agents/github/StartsTalks.java +++ b/src/main/java/com/rultor/agents/github/StartsTalks.java @@ -106,13 +106,17 @@ public void execute(final Talks talks) throws IOException { this, "Skipped, since not interesting reason '%s' in %s", reason, url ); - continue; } if (!new IssueUrl(url).valid()) { ++skipped; Logger.info(this, "Skipped, since not valid URL at %s", url); + } + + if (!"mention".equals(reason) || !new IssueUrl(url).valid()) { continue; } + + names.add(this.activate(talks, event)); } req.uri() diff --git a/src/main/js/home.js b/src/main/js/home.js index cd4904a78d..7691ba4552 100644 --- a/src/main/js/home.js +++ b/src/main/js/home.js @@ -36,10 +36,14 @@ $(document).ready( var $div = $('#pulse'); window.setInterval( function () { - $div.find('img').attr( - 'src', - $div.attr('data-href') + '?' + Date.now() - ); + // Check whether the #pulse div + // and the img tag does exists + if ($div.length && $div.find('img').length) { + $div.find('img').attr( + 'src', + $div.attr('data-href') + '?' + Date.now() + ); + } }, 1000 );