Skip to content

Commit

Permalink
update unsubscribe links
Browse files Browse the repository at this point in the history
  • Loading branch information
protitude committed Jul 22, 2024
1 parent 65edc20 commit c756da6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sympa.module
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ function sympa_build_email($type, $sympa_nid, $sympa_title, $sympa_body, $servic
$options = ['absolute' => TRUE];
$here = Url::fromRoute('entity.node.canonical', ['node' => $sympa_nid], $options);
$more_info = Url::fromRoute('entity.node.canonical', ['node' => 2514], $options);
$unsubscribe_n = Url::fromUri('internal:/gg/unsubscribe/news');
$unsubscribe_sa = Url::fromUri('internal:/gg/unsubscribe/service_alert');
$un_options = ['absolute' => TRUE, 'fragment' => 'unsubscribe'];
$unsubscribe_n = Url::fromRoute('entity.node.canonical', ['node' => 31540], $un_options);
$unsubscribe_sa = Url::fromRoute('entity.node.canonical', ['node' => 31539], $un_options);
$config = \Drupal::config('system.site');
$body_xss = isset($sympa_body[0]['value']) ? Xss::filterAdmin($sympa_body[0]['value']) : NULL;
$body_stripped = $body_xss ? preg_replace("/<img[^>]+\>/i", " ", $body_xss) : '';
Expand Down

0 comments on commit c756da6

Please sign in to comment.