Skip to content
Extraits de code Groupes Projets
Valider d9e3f3a7 rédigé par Steffen van Bergerem's avatar Steffen van Bergerem
Parcourir les fichiers

Merge branch 'stable' into develop

parents a967fe1f 9f2e5b18
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -129,9 +129,10 @@ Contributions are very welcome, the hard work is done! ...@@ -129,9 +129,10 @@ Contributions are very welcome, the hard work is done!
## Bug fixes ## Bug fixes
* Fix empty name field when editing aspect names [#6706](https://github.com/diaspora/diaspora/pull/6706) * Fix empty name field when editing aspect names [#6706](https://github.com/diaspora/diaspora/pull/6706)
* Fix internal server error when trying to log out of an expired session [#6707](https://github.com/diaspora/diaspora/pull/6707) * Fix internal server error when trying to log out of an expired session [#6707](https://github.com/diaspora/diaspora/pull/6707)
* Only mark unread notifications as read [#6711](https://github.com/diaspora/diaspora/pull/6711)
## Features ## Features
* Added the footer to conversation pages * Added the footer to conversation pages [#6710](https://github.com/diaspora/diaspora/pull/6710)
# 0.5.7.0 # 0.5.7.0
......
...@@ -61,9 +61,9 @@ class NotificationsController < ApplicationController ...@@ -61,9 +61,9 @@ class NotificationsController < ApplicationController
def read_all def read_all
current_type = Notification.types[params[:type]] current_type = Notification.types[params[:type]]
notifications = Notification.where(:recipient_id => current_user.id) notifications = Notification.where(recipient_id: current_user.id, unread: true)
notifications = notifications.where(:type => current_type) if params[:type] notifications = notifications.where(type: current_type) if params[:type]
notifications.update_all(:unread => false) notifications.update_all(unread: false)
respond_to do |format| respond_to do |format|
if current_user.unread_notifications.count > 0 if current_user.unread_notifications.count > 0
format.html { redirect_to notifications_path } format.html { redirect_to notifications_path }
...@@ -75,7 +75,6 @@ class NotificationsController < ApplicationController ...@@ -75,7 +75,6 @@ class NotificationsController < ApplicationController
format.xml { render :xml => {}.to_xml } format.xml { render :xml => {}.to_xml }
format.json { render :json => {}.to_json } format.json { render :json => {}.to_json }
end end
end end
end end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter