From cabde02d7567b250d4c2ecdd64749654c219b66a Mon Sep 17 00:00:00 2001 From: yahil madakiya Date: Thu, 17 May 2018 13:57:23 +0530 Subject: [PATCH] GH #971: Add 'message-media' context to hide media from user profile. Fix: Message media should not visible at user profile members/admin/media/. --- templates/media/media-with-message.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/media/media-with-message.php b/templates/media/media-with-message.php index 09900cb45..865156eca 100644 --- a/templates/media/media-with-message.php +++ b/templates/media/media-with-message.php @@ -77,6 +77,8 @@ function( response ) 'is_up_shortcode' => false, 'allow_anonymous' => true, 'privacy_enabled' => false, + 'context' => 'message-media', + 'context_id' => get_current_user_id(), ] ); ?>