Support Anonymize on internal archive.
This commit is contained in:
parent
564c5c31b9
commit
7a2e2d1306
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user