Link dA sources as http://$artist.deviantart.com/art/$title-$id in sidebar.
Previously we used 'http://$artist.deviantart.com/gallery/#/d$id'. This relied on a javascript redirect on Deviantart's end, which didn't work for people with javascript disabled.
This commit is contained in:
@@ -1361,9 +1361,9 @@ class PostTest < ActiveSupport::TestCase
|
||||
|
||||
should "normalize deviantart links" do
|
||||
@post.source = "http://fc06.deviantart.net/fs71/f/2013/295/d/7/you_are_already_dead__by_mar11co-d6rgm0e.jpg"
|
||||
assert_equal("http://mar11co.deviantart.com/gallery/#/d6rgm0e", @post.normalized_source)
|
||||
assert_equal("http://mar11co.deviantart.com/art/You-Are-Already-Dead-408921710", @post.normalized_source)
|
||||
@post.source = "http://fc00.deviantart.net/fs71/f/2013/337/3/5/35081351f62b432f84eaeddeb4693caf-d6wlrqs.jpg"
|
||||
assert_equal("http://deviantart.com/gallery/#/d6wlrqs", @post.normalized_source)
|
||||
assert_equal("http://deviantart.com/deviation/417560500", @post.normalized_source)
|
||||
end
|
||||
|
||||
should "normalize karabako links" do
|
||||
|
||||
Reference in New Issue
Block a user