emoji images are now v5 not v3
TODO: we should not hardcode this
This commit is contained in:
parent
ab8a1a377c
commit
09d34b7642
|
@ -457,7 +457,7 @@ describe CookedPostProcessor do
|
|||
<a href="http://www.google.com" rel="nofollow noopener">Google</a><br>
|
||||
<img src="http://foo.bar/image.png"><br>
|
||||
<a class="attachment" href="//test.localhost/uploads/default/original/1X/af2c2618032c679333bebf745e75f9088748d737.txt">text.txt</a> (20 Bytes)<br>
|
||||
<img src="//test.localhost/images/emoji/emoji_one/smile.png?v=3" title=":smile:" class="emoji" alt=":smile:">
|
||||
<img src="//test.localhost/images/emoji/emoji_one/smile.png?v=5" title=":smile:" class="emoji" alt=":smile:">
|
||||
</p>'
|
||||
end
|
||||
|
||||
|
@ -471,7 +471,7 @@ describe CookedPostProcessor do
|
|||
<a href="http://www.google.com" rel="nofollow noopener">Google</a><br>
|
||||
<img src="http://foo.bar/image.png"><br>
|
||||
<a class="attachment" href="//my.cdn.com/uploads/default/original/1X/af2c2618032c679333bebf745e75f9088748d737.txt">text.txt</a> (20 Bytes)<br>
|
||||
<img src="//my.cdn.com/images/emoji/emoji_one/smile.png?v=3" title=":smile:" class="emoji" alt=":smile:">
|
||||
<img src="//my.cdn.com/images/emoji/emoji_one/smile.png?v=5" title=":smile:" class="emoji" alt=":smile:">
|
||||
</p>'
|
||||
end
|
||||
|
||||
|
@ -483,7 +483,7 @@ describe CookedPostProcessor do
|
|||
<a href="http://www.google.com" rel="nofollow noopener">Google</a><br>
|
||||
<img src="http://foo.bar/image.png"><br>
|
||||
<a class="attachment" href="https://my.cdn.com/uploads/default/original/1X/af2c2618032c679333bebf745e75f9088748d737.txt">text.txt</a> (20 Bytes)<br>
|
||||
<img src="https://my.cdn.com/images/emoji/emoji_one/smile.png?v=3" title=":smile:" class="emoji" alt=":smile:">
|
||||
<img src="https://my.cdn.com/images/emoji/emoji_one/smile.png?v=5" title=":smile:" class="emoji" alt=":smile:">
|
||||
</p>'
|
||||
end
|
||||
|
||||
|
@ -496,7 +496,7 @@ describe CookedPostProcessor do
|
|||
<a href="http://www.google.com" rel="nofollow noopener">Google</a><br>
|
||||
<img src="http://foo.bar/image.png"><br>
|
||||
<a class="attachment" href="//test.localhost/uploads/default/original/1X/af2c2618032c679333bebf745e75f9088748d737.txt">text.txt</a> (20 Bytes)<br>
|
||||
<img src="//my.cdn.com/images/emoji/emoji_one/smile.png?v=3" title=":smile:" class="emoji" alt=":smile:">
|
||||
<img src="//my.cdn.com/images/emoji/emoji_one/smile.png?v=5" title=":smile:" class="emoji" alt=":smile:">
|
||||
</p>'
|
||||
end
|
||||
|
||||
|
@ -509,7 +509,7 @@ describe CookedPostProcessor do
|
|||
<a href="http://www.google.com" rel="nofollow noopener">Google</a><br>
|
||||
<img src="http://foo.bar/image.png"><br>
|
||||
<a class="attachment" href="//test.localhost/uploads/default/original/1X/af2c2618032c679333bebf745e75f9088748d737.txt">text.txt</a> (20 Bytes)<br>
|
||||
<img src="//my.cdn.com/images/emoji/emoji_one/smile.png?v=3" title=":smile:" class="emoji" alt=":smile:">
|
||||
<img src="//my.cdn.com/images/emoji/emoji_one/smile.png?v=5" title=":smile:" class="emoji" alt=":smile:">
|
||||
</p>'
|
||||
end
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ describe PrettyText do
|
|||
topic = Fabricate(:topic, title: "this is a test topic :slight_smile:")
|
||||
expected = <<HTML
|
||||
<aside class="quote" data-post="2" data-topic="#{topic.id}"><div class="title">
|
||||
<div class="quote-controls"></div><a href="http://test.localhost/t/this-is-a-test-topic-slight-smile/#{topic.id}/2">This is a test topic <img src="/images/emoji/emoji_one/slight_smile.png?v=3" title="slight_smile" alt="slight_smile" class="emoji"></a>
|
||||
<div class="quote-controls"></div><a href="http://test.localhost/t/this-is-a-test-topic-slight-smile/#{topic.id}/2">This is a test topic <img src="/images/emoji/emoji_one/slight_smile.png?v=5" title="slight_smile" alt="slight_smile" class="emoji"></a>
|
||||
</div>
|
||||
<blockquote><p>ddd</p></blockquote></aside>
|
||||
HTML
|
||||
|
|
|
@ -8,7 +8,7 @@ RSpec.describe Jobs::RebakeCustomEmojiPosts do
|
|||
post = Fabricate(:post, raw: 'some post with :test: yay')
|
||||
|
||||
expect(post.reload.cooked).to eq(
|
||||
"<p>some post with <img src=\"#{upload.url}?v=3\" title=\":test:\" class=\"emoji emoji-custom\" alt=\":test:\"> yay</p>"
|
||||
"<p>some post with <img src=\"#{upload.url}?v=5\" title=\":test:\" class=\"emoji emoji-custom\" alt=\":test:\"> yay</p>"
|
||||
)
|
||||
|
||||
custom_emoji.destroy!
|
||||
|
|
Loading…
Reference in New Issue