• Heinrich Lee Yu's avatar
    Pass current_user when rendering Markdown in email · d789d73f
    Heinrich Lee Yu authored
    When rendering Markdown in notification emails, we pass in the recipient
    as current_user in the rendering context so that private references
    visible to that user are rendered.
    
    Without this change, only public references are rendered.
    
    This also passes the issuable_reference_expansion_enabled option so that
    it is rendered similar to how it is in the web UI.
    
    Changelog: fixed
    d789d73f
issue_due_email.html.haml 420 Bytes