fix twitter:error:forbidden catch block
This commit is contained in:
@@ -31,7 +31,7 @@ module Sources::Strategies
|
|||||||
@tags = attrs[:entities][:hashtags].map do |text:, indices:|
|
@tags = attrs[:entities][:hashtags].map do |text:, indices:|
|
||||||
[text, "https://twitter.com/hashtag/#{text}"]
|
[text, "https://twitter.com/hashtag/#{text}"]
|
||||||
end
|
end
|
||||||
rescue Twitter::Error::Forbidden
|
rescue ::Twitter::Error::Forbidden
|
||||||
end
|
end
|
||||||
|
|
||||||
def image_urls
|
def image_urls
|
||||||
|
|||||||
Reference in New Issue
Block a user