Skip to content

Commit

Permalink
[PROD-7253] Refactor activity group header display logic - always sho…
Browse files Browse the repository at this point in the history
…w the activity action
  • Loading branch information
annrra committed May 8, 2024
1 parent cae4335 commit a769fe0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/bp-templates/bp-nouveau/buddypress/activity/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,7 @@
<div class="activity-group-heading"><a href="<?php echo $group_permalink; ?>"><?php echo $group_name; ?></a></div>
<div class="activity-group-post-meta">
<span class="activity-post-author">
<?php
if ( in_array( $activities_template->activity->type, array( 'group_details_updated', 'joined_group', 'created_group') ) ) :
bp_activity_action();
else : ?>
<a href="<?php echo $user_link; ?>">
<?php echo bp_core_get_user_displayname( $activities_template->activity->user_id ); ?>
</a>
<?php endif; ?>
<?php bp_activity_action(); ?>
</span>
<a href="<?php echo $activity_link; ?>">
<?php
Expand Down

0 comments on commit a769fe0

Please sign in to comment.