Skip to content

Notification email footer shows raw notification type key #4779

Description

@karl-bullock

Current Behavior

The notification email footer shows the raw notification type key instead of a readable name. For example a mention email reads:

This email was sent to user@example.com because you are subscribed to "postMentioned" notifications on My Forum.

Any notification type does this, including ones from extensions (e.g. "linkrobinsSupportNewReply").

Expected Behavior

The footer should show a human readable notification name, like the wording used on the notification settings screen, not the internal type key.

Steps to Reproduce

  1. Receive any notification email (for example a post mention).
  2. Read the footer line "...you are subscribed to {type} notifications...".

Cause

NotificationMailer passes the raw type into the footer text:

$type = $blueprint::getType();

That value is interpolated directly into core.email.notification.footer.main_text as {type}, so the machine key is shown verbatim.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions