Media uploaded via Activity post are not shown

Media such as images uploaded when posting an Activity update using Youzer plugin may not show in the posted activity entry. To fix this add the following code to your functions.php file.

Now refresh your Activity page twice, then remove the code and the issue should be solved.