mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-20 04:49:30 +00:00
Fix notification email links to handle user and non-user contexts
This commit is contained in:
@@ -101,6 +101,9 @@ class NotificationMailer
|
||||
if (null === $addressee->getEmail()) {
|
||||
continue;
|
||||
}
|
||||
if ($notification->getSender() === $addressee) {
|
||||
continue;
|
||||
}
|
||||
$this->processNotificationForAddressee($notification, $addressee);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,12 @@
|
||||
> {{ line }}
|
||||
{% endfor %}
|
||||
|
||||
{% if dest.isUser %}
|
||||
[Vous pouvez visualiser la notification et y répondre ici.]({{ absolute_url(path('chill_main_notification_show', {'_locale': dest.locale, 'id': notification.id }, false)) }})
|
||||
{% else %}
|
||||
[Vous pouvez visualiser la notification et y répondre ici.]({{ absolute_url(path('chill_main_notification_grant_access_by_access_key', {'_locale': dest.locale, 'id': notification.id, 'accessKey': notification.accessKey }, false)) }})
|
||||
{% endif %}
|
||||
|
||||
|
||||
-----
|
||||
|
||||
|
||||
@@ -12,7 +12,11 @@ Titre de la notification: {{ notification.title }}
|
||||
> {{ line|raw }}
|
||||
{% endfor %}
|
||||
|
||||
Vous pouvez visualiser la notification et y répondre ici: {{ absolute_url(path('chill_main_notification_show', {'_locale': dest.locale, 'id': notification.id }, false)) }}.
|
||||
{% if dest.isUser %}
|
||||
[Vous pouvez visualiser la notification et y répondre ici.]({{ absolute_url(path('chill_main_notification_show', {'_locale': dest.locale, 'id': notification.id }, false)) }})
|
||||
{% else %}
|
||||
[Vous pouvez visualiser la notification et y répondre ici.]({{ absolute_url(path('chill_main_notification_grant_access_by_access_key', {'_locale': dest.locale, 'id': notification.id, 'accessKey': notification.accessKey }, false)) }})
|
||||
{% endif %}
|
||||
|
||||
--
|
||||
Le logiciel Chill
|
||||
|
||||
Reference in New Issue
Block a user