mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
DG IZ stream for the current user's posts
This commit is contained in:
@@ -2,7 +2,7 @@ class GroupsController < ApplicationController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@posts = Post.paginate :page => params[:page], :order => 'created_at DESC'
|
||||
@posts = current_user.posts.paginate :page => params[:page], :order => 'created_at DESC'
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
= current_user.profile.first_name
|
||||
|
||||
= render "shared/publisher"
|
||||
|
||||
%ul#stream
|
||||
- for post in @posts
|
||||
= render type_partial(post), :post => post
|
||||
|
||||
Reference in New Issue
Block a user