pump-io / pump.io

Social server with an ActivityStreams API
http://pump.io/
Apache License 2.0
2.22k stars 333 forks source link

Cannot read property 'length' of undefined in activity-object-collection.jade #1522

Open strugee opened 6 years ago

strugee commented 6 years ago

My logs show 500 Internal Server Error for https://pump.strugee.net/alex/activity/pzFU2fl7QNGU7WRhgZJyxw:

/usr/lib/node_modules/pump.io/public/template/activity-object-collection.jade:1
  > 1| each object, index in coll.items
    2|   if index !== 0
    3|     | ,
    4|   //- TODO this is hacky

Cannot read property 'length' of undefined
ghost commented 6 years ago

This line solved that problem: https://github.com/pump-io/pump.io/pull/1463/files#diff-79688d3384d9dca1cb5ed823fabd6319R86