Merge pull request #4796 from Flaburgan/more-photos-than-8
Remove the limit to 8 pictures in the view
This commit is contained in:
commit
b833d6d647
2 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue