Remove the limit to 8 pictures in the view

This commit is contained in:
flaburgan 2014-02-20 14:38:16 +01:00
parent 57991187d1
commit 16309dc832
2 changed files with 2 additions and 1 deletions

View file

@ -120,6 +120,7 @@ For more details see https://wiki.diasporafoundation.org/Updating
* Add indication about markdown formatting in the publisher [#4589](https://github.com/diaspora/diaspora/pull/4589)
* Add captcha to signup form [#4659](https://github.com/diaspora/diaspora/pull/4659)
* Update Underscore.js 1.3.1 to 1.5.2, update Backbone.js 0.9.2 to 1.1.0 [#4662](https://github.com/diaspora/diaspora/pull/4662)
* Display more than 8 pictures on a post [#4796](https://github.com/diaspora/diaspora/pull/4796)
## Gem updates
Added:

View file

@ -22,7 +22,7 @@ app.views.Content = app.views.Base.extend({
smallPhotos : function() {
var photos = this.model.get("photos")
if(!photos || photos.length < 2) { return }
return photos.slice(1,8)
return photos
},