diff --git a/changelog-old b/changelog-old index e37aa34db..152109283 100644 --- a/changelog-old +++ b/changelog-old @@ -1,5 +1,9 @@ master +2.39.1 +- Mayhem + Add /gd/, /out/, /vp/ and /vr/ archive redirection. + 2.39.0 - Queue Fix rare bug in Relative Post Dates. diff --git a/src/features.coffee b/src/features.coffee index 0fa251320..d3a74d679 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -1940,7 +1940,7 @@ Redirect = image: (board, filename) -> # Do not use g.BOARD, the image url can originate from a cross-quote. switch "#{board}" - when 'a', 'jp', 'm', 'q', 'tg', 'vg', 'wsg' + when 'a', 'gd', 'jp', 'm', 'q', 'tg', 'vg', 'vp', 'vr', 'wsg' "//archive.foolz.us/#{board}/full_image/#{filename}" when 'u' "//nsfw.foolz.us/#{board}/full_image/#{filename}" @@ -1956,22 +1956,22 @@ Redirect = "//archive.nyafuu.org/#{board}/full_image/#{filename}" post: (board, postID) -> switch "#{board}" - when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg' + when 'a', 'co', 'gd', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'vp', 'vr', 'wsg' "//archive.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}" when 'u' "//nsfw.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}" - when 'c', 'int', 'po' + when 'c', 'int', 'out', 'po' "//archive.thedarkcave.org/_/api/chan/post/?board=#{board}&num=#{postID}" # for fuuka-based archives: # https://github.com/eksopl/fuuka/issues/27 to: (data) -> {board} = data switch "#{board}" - when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg' + when 'a', 'co', 'gd', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'vp', 'vr', 'wsg' url = Redirect.path '//archive.foolz.us', 'foolfuuka', data when 'u' url = Redirect.path '//nsfw.foolz.us', 'foolfuuka', data - when 'int', 'po' + when 'int', 'out', 'po' url = Redirect.path '//archive.thedarkcave.org', 'foolfuuka', data when 'ck', 'lit' url = Redirect.path '//fuuka.warosu.org', 'fuuka', data