Read posts from member.posts

This commit is contained in:
Brenda Wallace
2019-07-16 23:10:01 +12:00
parent 91897273be
commit 312cd0d770
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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)