[buddypress-trac] [BuddyPress Trac] #6040: Friendship activity missing

buddypress-trac noreply at wordpress.org
Wed Nov 26 23:38:25 UTC 2014


#6040: Friendship activity missing
--------------------------+------------------------------
 Reporter:  dontdream     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Activity      |     Version:  2.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by dontdream):

 I'm trying to understand this issue better, and this is what I found in
 the code:

 1. A friendship generates two activities, one for each friend.

 2. One of the twin activities is hidden, to avoid (I think) showing two
 activities for the same friendship in the main activity page.

 Now the problem is, there is no simple way to decide whether to show the
 hidden friendship activity or not. It should remain hidden when its twin
 activity is shown, and it should be displayed when its twin is not shown.
 I wasn't able to find a simple way to code this condition.

 Alternative solutions could be:

 a. Don't hide the second activity, and live with the nuisance of seeing
 (sometimes) two activities for a friendship (e.g., ''first'' obtained the
 friendship of ''second'', ''second'' accepted the friendship of
 ''first'').

 b. Generate a single activity for a friendship, and modify the activity
 loop (how?) to make it find the friendship activity for ''both'' the
 friends.

 By the way, I'm surprised I am the first to notice this issue. Am I
 missing something?

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6040#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list