Fix #5077: Images rated "Adult" on Newgrounds no longer upload.

This commit is contained in:
evazion
2022-04-02 17:55:29 -05:00
parent 2543a2b05b
commit 6807ed7786
2 changed files with 7 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ module Source
def page
return nil if page_url.blank?
response = http.cache(1.minute).get(page_url)
response = http.cookies(vmkIdu5l8m: Danbooru.config.newgrounds_session_cookie).cache(1.minute).get(page_url)
return nil if response.status == 404
response.parse

View File

@@ -271,6 +271,12 @@ module Danbooru
nil
end
# Your Newgrounds "vmkIdu5l8m" cookie. Login to Newgrounds then use the
# devtools to find the "vmkIdu5l8m" cookie.
def newgrounds_session_cookie
nil
end
# Your NicoSeiga "user_session" cookie. Login to NicoSeiga then use the
# devtools to find the "user_session" cookie.
def nico_seiga_user_session