Make use of Post::getNameBlock().
This commit is contained in:
parent
463947820f
commit
0e3f90fe4f
@ -3,8 +3,7 @@ Get =
|
|||||||
{OP} = thread
|
{OP} = thread
|
||||||
excerpt = OP.info.subject?.trim() or
|
excerpt = OP.info.subject?.trim() or
|
||||||
OP.info.comment.replace(/\n+/g, ' // ') or
|
OP.info.comment.replace(/\n+/g, ' // ') or
|
||||||
Conf['Anonymize'] and 'Anonymous' or
|
OP.getNameBlock()
|
||||||
$('.nameBlock', OP.nodes.info).textContent.trim()
|
|
||||||
if excerpt.length > 70
|
if excerpt.length > 70
|
||||||
excerpt = "#{excerpt[...67]}..."
|
excerpt = "#{excerpt[...67]}..."
|
||||||
"/#{thread.board}/ - #{excerpt}"
|
"/#{thread.board}/ - #{excerpt}"
|
||||||
|
|||||||
@ -92,11 +92,7 @@ Unread =
|
|||||||
return
|
return
|
||||||
openNotification: (post) ->
|
openNotification: (post) ->
|
||||||
return unless Header.areNotificationsEnabled
|
return unless Header.areNotificationsEnabled
|
||||||
name = if Conf['Anonymize']
|
notif = new Notification "#{post.getNameBlock()} replied to you",
|
||||||
'Anonymous'
|
|
||||||
else
|
|
||||||
$('.nameBlock', post.nodes.info).textContent.trim()
|
|
||||||
notif = new Notification "#{name} replied to you",
|
|
||||||
body: post.info.comment
|
body: post.info.comment
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
notif.onclick = ->
|
notif.onclick = ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user