Add a workaround for broken AlreadyRetweeted error detection

https://github.com/sferik/twitter/pull/875
This commit is contained in:
Akinori MUSHA 2017-10-29 23:06:44 +09:00
parent 9e1c979004
commit d937934daf

View file

@ -54,3 +54,7 @@ module TwitterConcern
end
end
end
Twitter::Error::FORBIDDEN_MESSAGES = Twitter::Error.send(:remove_const, :FORBIDDEN_MESSAGES).merge(
'You have already retweeted this tweet.' => Twitter::Error::AlreadyRetweeted
).freeze