fanbox: don't raise error on age-restricted posts.

Prevent age-restricted fanbox posts from raising errors when source data
is fetched. This prevents error messages from being shown to users when
switching to the edit tab on a post.

This will cause uploads of age-restricted posts to fail with an
unrelated error because we either can't find the image url (if we were
given only the html page) or we can't download the image (because we're
not logged in to Fanbox).
This commit is contained in:
evazion
2020-08-18 14:43:07 -05:00
parent 5bad5c6012
commit 1d2a8a7898
3 changed files with 22 additions and 12 deletions

View File

@@ -371,6 +371,9 @@ class UploadsControllerTest < ActionDispatch::IntegrationTest
should_upload_successfully("https://art.ngfiles.com/images/1254000/1254722_natthelich_pandora.jpg")
should_upload_successfully("https://art.ngfiles.com/comments/57000/iu_57615_7115981.jpg")
should_upload_successfully("https://www.newgrounds.com/art/view/puddbytes/costanza-at-bat")
should_upload_successfully("https://www.fanbox.cc/@tsukiori/posts/1080657")
should_upload_successfully("https://downloads.fanbox.cc/images/post/1080657/SaakPC251KafLL6jIo1WPPmr.png")
end
end
end