Do not pass platform parameter to the message body

Created on 16 February 2023, almost 2 years ago
Updated 30 March 2023, almost 2 years ago

Problem/Motivation

One of the initial requirements was to add platform property, which was supposed to be added only to SDK for some analytics purposes. We shouldn’t override it, but we currently do it here:

$unione_message = [
  'from_email' => $email,
  'from_name' => $name,
  'recipients' => $recipients,
  'subject' => $message['subject'],
      'body_html' => $message['body'] instanceof MarkupInterface
      ? $message['body']->__toString()
      : $message['body'],
      'platform' => 'drupal.' . self::VERSION,
];

Proposed resolution

Remove this override and probably remove VERSION constant as well.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇦Ukraine Matroskeen 🇺🇦 Ukraine, Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024