Skip to content

Commit

Permalink
PROD-7420: Fix GIF disappearance issue in forum, topic, and reply act…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
surajkrsingh committed Oct 8, 2024
1 parent 1274299 commit f8dbe41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bp-media/bp-media-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,11 @@ function bp_media_forums_save_gif_data( $post_id ) {
bp_activity_update_meta( $main_activity_id, '_gif_data', $gdata );
bp_activity_update_meta( $main_activity_id, '_gif_raw_data', $gif_data );
}
} else {
} elseif (
isset( $_POST['action'] ) &&
in_array( $_POST['action'], array( 'bbp-edit-reply', 'bbp-edit-topic', 'bbp-edit-forum' ), true ) &&
empty( $_POST['bbp_media_gif'] )
) {
delete_post_meta( $post_id, '_gif_data' );
delete_post_meta( $post_id, '_gif_raw_data' );

Expand Down

0 comments on commit f8dbe41

Please sign in to comment.