| 138 | | // Update the activity stream item |
| 139 | | if ( bp_is_active( 'activity' ) ) |
| 140 | | bp_activity_delete_by_item_id( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $topic_id, 'component' => $bp->groups->id, 'type' => 'new_forum_topic' ) ); |
| | 138 | |
| | 139 | // Get the corresponding activity item |
| | 140 | if ( bp_is_active( 'activity' ) ) { |
| | 141 | $id = bp_activity_get_activity_id( array( |
| | 142 | 'item_id' => $bp->groups->current_group->id, |
| | 143 | 'secondary_item_id' => $topic_id, |
| | 144 | 'component' => $bp->groups->id, |
| | 145 | 'type' => 'new_forum_topic' |
| | 146 | ) ); |
| | 147 | } |
| 147 | 155 | 'action' => apply_filters_ref_array( 'groups_activity_new_forum_topic_action', array( $activity_action, $topic_text, &$topic ) ), |
| 148 | 156 | 'content' => apply_filters_ref_array( 'groups_activity_new_forum_topic_content', array( $activity_content, $topic_text, &$topic ) ), |
| 149 | 157 | 'primary_link' => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/' ), |