Fix #2779: Erroneous pixiv_id parsed for novel/background/profile images

This commit is contained in:
evazion
2016-12-03 20:00:34 -06:00
parent 96a38f8d1b
commit 5302b804f1
2 changed files with 7 additions and 9 deletions

View File

@@ -1685,7 +1685,7 @@ class Post < ActiveRecord::Base
module PixivMethods
def parse_pixiv_id
self.pixiv_id = Sources::Strategies::Pixiv.illust_id_from_url(source)
self.pixiv_id = Sources::Strategies::Pixiv.new(source).illust_id_from_url
end
end