Fix Post::parseFile

This commit is contained in:
Mayhem 2013-06-26 10:04:20 +02:00
parent 827bdf9f25
commit 20f6aba5f2

View File

@ -101,7 +101,7 @@ class Post
@quotes = Object.keys quotes
parseFile: ->
return unless (fileEl = $ '.file', post) and thumb = $ 'img[data-md5]', fileEl
return unless (fileEl = $ '.file', @nodes.post) and thumb = $ 'img[data-md5]', fileEl
# Supports JPG/PNG/GIF/PDF.
# Flash files are not supported.
alt = thumb.alt