mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-12 10:02:07 -04:00
Read posts from member.posts
This commit is contained in:
@@ -17,6 +17,7 @@ class MembersController < ApplicationController
|
||||
@twitter_auth = @member.auth('twitter')
|
||||
@flickr_auth = @member.auth('flickr')
|
||||
@facebook_auth = @member.auth('facebook')
|
||||
@posts = @member.posts
|
||||
|
||||
@activity = TimelineService.member_query(@member).limit(30)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%channel
|
||||
%title #{@member.login_name}'s recent posts (#{ENV['GROWSTUFF_SITE_NAME']})
|
||||
%link= member_url(@member)
|
||||
- @posts.each do |post|
|
||||
- @member.posts.each do |post|
|
||||
%item
|
||||
%title #{post.subject} by #{post.author.login_name}
|
||||
%pubdate= post.created_at.to_s(:rfc822)
|
||||
|
||||
Reference in New Issue
Block a user