This is missing a bit of the original logic that ensures that the current context is not being shown as the preview item. For emails, that context would be the current user. In the main UI, the current context can be the current user or current group:

```
{if previewObj['oae:id'] === context}
    {if activity.target}
        {var previewObj = activity.object}
    {else}
        {var previewObj = activity.actor}
    {/if}
{/if}
```