[buddypress-trac] [BuddyPress Trac] #8581: Extending no content activities with images and call of actions

buddypress-trac noreply at wordpress.org
Sat Dec 11 13:40:31 UTC 2021


#8581: Extending no content activities with images and call of actions
-----------------------------+---------------------
 Reporter:  vapvarun         |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  10.0.0
Component:  Activity         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+---------------------

Comment (by imath):

 In [changeset:"13177" 13177]:
 {{{
 #!CommitTicketReference repository="" revision="13177"
 Make sure the `new_avatar` activity can use the avatar crop results

 Since [13175] the `BP_Attachment_Avatar::crop()` method include the
 timestamp the avatar was generated on into its returned array. This array
 is now transported into the action the function creating a `new_avatar`
 activity hooks to. This function (`bp_members_new_avatar_activity()`) now
 accepts 3 more parameters included the transported crop results. This
 makes it possible to use the timestamp when the avatar was generated on as
 the `new_avatar` activity recorded time. Doing so, we don't need to add an
 extra activity meta to store the name of the avatar file to be sure to
 display the avatar the user had at the time the activity was created.

 Props vapvarun, oztaser

 See #8581
 }}}

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


More information about the buddypress-trac mailing list