Fix subject selector in Get.title. Fix filename filtering in case of spoiler image.
This commit is contained in:
parent
5f537f0405
commit
5a26f3883d
@ -749,7 +749,7 @@
|
||||
var img;
|
||||
img = post.img;
|
||||
if (img) {
|
||||
return img.alt;
|
||||
return img.alt.replace('Spoiler Image, ', '');
|
||||
}
|
||||
return false;
|
||||
},
|
||||
@ -3679,7 +3679,7 @@
|
||||
title: function(thread) {
|
||||
var el, op, span;
|
||||
op = $('.op', thread);
|
||||
el = $('.subject', op);
|
||||
el = $('.postInfo .subject', op);
|
||||
if (!el.textContent) {
|
||||
el = $('blockquote', op);
|
||||
if (!el.textContent) {
|
||||
|
||||
@ -587,7 +587,7 @@ Filter =
|
||||
filesize: (post) ->
|
||||
{img} = post
|
||||
if img
|
||||
return img.alt
|
||||
return img.alt.replace 'Spoiler Image, ', ''
|
||||
false
|
||||
md5: (post) ->
|
||||
{img} = post
|
||||
@ -2890,7 +2890,7 @@ Get =
|
||||
root
|
||||
title: (thread) ->
|
||||
op = $ '.op', thread
|
||||
el = $ '.subject', op
|
||||
el = $ '.postInfo .subject', op
|
||||
unless el.textContent
|
||||
el = $ 'blockquote', op
|
||||
unless el.textContent
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user