File count fixes.
This commit is contained in:
parent
93fc37956b
commit
a3dc18ce82
@ -38,6 +38,7 @@ ThreadStats =
|
|||||||
node: ->
|
node: ->
|
||||||
postCount = 0
|
postCount = 0
|
||||||
fileCount = 0
|
fileCount = 0
|
||||||
|
fileCount++ if @board.ID is 'f'
|
||||||
@posts.forEach (post) ->
|
@posts.forEach (post) ->
|
||||||
postCount++
|
postCount++
|
||||||
fileCount++ if post.file
|
fileCount++ if post.file
|
||||||
|
|||||||
@ -70,9 +70,10 @@ ThreadUpdater =
|
|||||||
# as posts may be `kill`ed elsewhere.
|
# as posts may be `kill`ed elsewhere.
|
||||||
ThreadUpdater.postIDs = []
|
ThreadUpdater.postIDs = []
|
||||||
ThreadUpdater.fileIDs = []
|
ThreadUpdater.fileIDs = []
|
||||||
|
ThreadUpdater.fileIDs.push @ID if @board.ID is 'f'
|
||||||
@posts.forEach (post) ->
|
@posts.forEach (post) ->
|
||||||
ThreadUpdater.postIDs.push post.ID
|
ThreadUpdater.postIDs.push post.ID
|
||||||
ThreadUpdater.fileIDs.push post.ID if post.file and not post.file.isDead
|
ThreadUpdater.fileIDs.push post.ID if post.file
|
||||||
|
|
||||||
ThreadUpdater.cb.interval.call $.el 'input', value: Conf['Interval']
|
ThreadUpdater.cb.interval.call $.el 'input', value: Conf['Interval']
|
||||||
|
|
||||||
@ -359,5 +360,5 @@ ThreadUpdater =
|
|||||||
deletedPosts: deletedPosts
|
deletedPosts: deletedPosts
|
||||||
deletedFiles: deletedFiles
|
deletedFiles: deletedFiles
|
||||||
postCount: OP.replies + 1
|
postCount: OP.replies + 1
|
||||||
fileCount: OP.images + (!!thread.OP.file and !thread.OP.file.isDead)
|
fileCount: OP.images + !!OP.fsize
|
||||||
ipCount: OP.unique_ips
|
ipCount: OP.unique_ips
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user