Skip to content

Commit cb173d5

Browse files
committed
#116 Check class of feedlink
1 parent 32d83d6 commit cb173d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugins/filter/google_news.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Name:: Automatic::Plugin::Filter::GoogleNews
33
# Author:: 774 <http://id774.net>
44
# Created:: Oct 12, 2014
5-
# Updated:: Oct 12, 2014
5+
# Updated:: Oct 14, 2014
66
# Copyright:: Copyright (c) 2014 Automatic Ruby Developers.
77
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
88

@@ -33,8 +33,8 @@ def run
3333
private
3434

3535
def rewrite_link(feed)
36-
if feed.link.index("http://news.google.com")
37-
if feed.link.class == String
36+
if feed.link.class == String
37+
if feed.link.index("http://news.google.com")
3838
matched = feed.link.match(/(&url=)/)
3939
unless matched.nil?
4040
new_link = matched.post_match

0 commit comments

Comments
 (0)