diaspora/diaspora — Issue #2966: NoMethodError in post view of reshare of deleted post
Author: christophe-de
Created: 2012-03-01 13:06:46+00:00
State: open

Hi,

when I access a reshare of a post that has been deleted via the posts URL the exception below is thrown.

GET /posts/xxxxx

```NoMethodError (undefined method `size' for nil:NilClass):
app/presenters/./../lib/template_picker.rb:38:in `multi_photo?'
app/presenters/./../lib/template_picker.rb:19:in `send'
app/presenters/./../lib/template_picker.rb:19:in `template_name'
app/presenters/./../lib/template_picker.rb:18:in `each'
app/presenters/./../lib/template_picker.rb:18:in `template_name'
app/presenters/post_presenter.rb:88:in `template_name'
app/presenters/post_presenter.rb:26:in `to_json'
app/controllers/posts_controller.rb:36:in `show'
app/controllers/posts_controller.rb:33:in `show'
lib/rack/chrome_frame.rb:39:in `call'
```