Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#318 closed defect (bug) (fixed)

in blogs/recent-posts not only my posts

Reported by: matjack1's profile matjack1 Owned by:
Milestone: Priority: minor
Severity: Version:
Component: Keywords:
Cc: jvinch@…, matjack1

Description

in page blogs/recent-posts you can see all the posts that the user has revised and not only the posts made by the user

Attachments (1)

bp-blogs-classes.php (20.4 KB) - added by matjack1 15 years ago.
bp-blogs-classes.php

Download all attachments as: .zip

Change History (7)

#1 @matjack1
15 years ago

  • Priority changed from major to minor

#2 @matjack1
15 years ago

i have solved it:

+++ bp-blogs-classes.php
@@ -311,9 +311,12 @@


for ( $i = 0; $i < count($post_ids); $i++ ) {

  • $posts[$i] = BP_Blogs_Post::fetch_post_content($post_ids[$i]);

+ $post = BP_Blogs_Post::fetch_post_content($post_ids[$i]);
+ if($post->post_author == $user_id)
+ $posts[] = $post;
+ else
+ $total_post_count--;

}

-

return array( 'posts' => $posts, 'count' => $total_post_count );

}


#3 @jvinch
15 years ago

  • Cc jvinch@… added

I tested this and this didn't work for me. Maybe I misunderstood somewhere along the way. Can you attached a copy of your file so I can make sure I'm looking at the same code you are?

@matjack1
15 years ago

bp-blogs-classes.php

#4 @matjack1
15 years ago

ok, i've attached the file, can you confirm that it doesn't work for you?

#5 @matjack1
15 years ago

  • Cc matjack1 added

#6 @apeatling
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

This should no longer be an issue in the latest revision. I've checked and it seems to now work fine. Please reopen if you find otherwise.

Note: See TracTickets for help on using tickets.