Support Anonymize on internal archive.

This commit is contained in:
ccd0 2015-01-04 10:15:05 -08:00
parent 564c5c31b9
commit 7a2e2d1306

View File

@ -1,6 +1,7 @@
Anonymize =
init: ->
return if g.VIEW not in ['index', 'thread'] or !Conf['Anonymize']
return if g.VIEW not in ['index', 'thread', 'archive'] or !Conf['Anonymize']
return @archive() if g.VIEW is 'archive'
Post.callbacks.push
name: 'Anonymize'
@ -16,3 +17,7 @@ Anonymize =
if @info.email
$.replace email, name
delete @nodes.email
archive: ->
$.ready ->
name.textContent = 'Anonymous' for name in $$ '.name'
$.rm trip for trip in $$ '.postertrip'