Skip to content

Commit

Permalink
GH rtCamp#971: Add 'message-media' context to hide media from user pr…
Browse files Browse the repository at this point in the history
…ofile.

Fix: Message media should not visible at user profile members/admin/media/.
  • Loading branch information
yahilmadakiya authored and kapilpaul committed Oct 5, 2021
1 parent f450ec3 commit cabde02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/media/media-with-message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]
);
?>
Expand Down

0 comments on commit cabde02

Please sign in to comment.