diff --git a/Manager/Manager.php b/Manager/Manager.php
index ae9a5cf..fd250c3 100644
--- a/Manager/Manager.php
+++ b/Manager/Manager.php
@@ -273,7 +273,6 @@ public function hasSubscribed(User $user, Forum $forum)
public function sendMessageNotification(Message $message, User $user)
{
$forum = $message->getSubject()->getCategory()->getForum();
-
$notifications = $this->notificationRepo->findBy(array('forum' => $forum));
$users = array();
@@ -283,7 +282,7 @@ public function sendMessageNotification(Message $message, User $user)
$title = $this->translator->trans(
'forum_new_message',
- array('%forum%' => $forum->getResourceNode()->getName(), '%subject%' => $message->getSubject()->getTitle()),
+ array('%forum%' => $forum->getResourceNode()->getName(), '%subject%' => $message->getSubject()->getTitle(), '%author%' => $message->getCreator()->getUsername()),
'forum'
);
@@ -294,7 +293,6 @@ public function sendMessageNotification(Message $message, User $user)
$body = "{$title}
{$message->getContent()}";
$this->mailManager->send($title, $body, $users);
-
}
/**
diff --git a/Resources/translations/forum.en.yml b/Resources/translations/forum.en.yml
index d28297f..8b17e2b 100644
--- a/Resources/translations/forum.en.yml
+++ b/Resources/translations/forum.en.yml
@@ -9,7 +9,7 @@ forum_back_to_subjects: Back to subjects
forum_category_edit: 'Edit category'
forum_form_name: Name
forum_message_form_content: Content
-forum_new_message: A new post was added to topic "%subject%" in forum "%forum%".
+forum_new_message: A new post was added to topic "%subject%" in forum "%forum% by %author%".
forum_new_subject: A new topic was initiated in forum "%forum%".
forum_options_form_messages: Posts per page
forum_options_form_subjects: Topics per page
@@ -48,4 +48,4 @@ no: No
notifications_explanation: Global notifications will send a mail to each user who are granted this forum access each time a new message is created.
activate_global_notifications: Activate global notifications
disable_global_notifications: Disable global notifications
-responses: Replies
\ No newline at end of file
+responses: Replies
diff --git a/Resources/translations/forum.es.yml b/Resources/translations/forum.es.yml
index 0670f54..4e96255 100644
--- a/Resources/translations/forum.es.yml
+++ b/Resources/translations/forum.es.yml
@@ -9,7 +9,7 @@ forum_back_to_subjects: Volver a las temas
forum_category_edit: 'Editar una categoría'
forum_form_name: Nombre
forum_message_form_content: Cotenido
-forum_new_message: 'Un nuevo mensaje fue agregada en tema "%subject%", en el foro "%forum%".'
+forum_new_message: 'Un nuevo mensaje fue agregada en tema "%subject%", en el foro "%forum% por %author%".'
forum_options_form_messages: 'Mensajes por página'
forum_options_form_subjects: 'Temas por página'
forum_settings: 'Configuración del foro'
@@ -47,4 +47,4 @@ no: no
notifications_explanation: Cuando se agrega un mensaje, la activación de las notificaciones globales conlleva el envío de un mail a los usuarios que tienen acceso al foro.
activate_global_notifications: Activar las notificaciones globales
disable_global_notifications: Anular las notificaciones globales
-responses: Respuestas
\ No newline at end of file
+responses: Respuestas
diff --git a/Resources/translations/forum.fr.yml b/Resources/translations/forum.fr.yml
index ce16036..2cf49cf 100644
--- a/Resources/translations/forum.fr.yml
+++ b/Resources/translations/forum.fr.yml
@@ -17,7 +17,7 @@ forum_form_name: Nom
forum_options_form_subjects: Sujets par page
forum_options_form_messages: Messages par page
forum_subject_title_form_title: Titre
-forum_new_message: Un nouveau message a été ajouté dans le sujet "%subject%" du forum "%forum%".
+forum_new_message: Un nouveau message a été ajouté dans le sujet "%subject%" du forum "%forum% par %author%".
forum_new_subject: Un nouveau sujet a été ajouté dans le forum "%forum%".
last_message: Dernier message
messages: Messages
@@ -48,4 +48,4 @@ no: Non
notifications_explanation: L'activation des notifications globales entraîne l'envoi d'un mail aux utilisateurs ayant accès au forum lors de l'ajout d'un message.
activate_global_notifications: Activer les notifications globales
disable_global_notifications: Annuler les notifications globales
-responses: Réponses
\ No newline at end of file
+responses: Réponses