mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-09 07:08:07 -05:00
Strip EXIF data as user preference
This commit is contained in:
@@ -52,6 +52,12 @@ class UsersController < ApplicationController
|
||||
else
|
||||
flash[:notice] = I18n.t 'users.update.settings_not_updated'
|
||||
end
|
||||
elsif u[:strip_exif]
|
||||
if @user.update_attributes(u)
|
||||
flash[:notice] = I18n.t 'users.update.settings_updated'
|
||||
else
|
||||
flash[:notice] = I18n.t 'users.update.settings_not_updated'
|
||||
end
|
||||
elsif u[:language]
|
||||
if @user.update_attributes(u)
|
||||
I18n.locale = @user.language
|
||||
@@ -182,6 +188,7 @@ class UsersController < ApplicationController
|
||||
:invitation_service,
|
||||
:invitation_identifier,
|
||||
:show_community_spotlight_in_stream,
|
||||
:strip_exif,
|
||||
:auto_follow_back,
|
||||
:auto_follow_back_aspect_id,
|
||||
:remember_me,
|
||||
|
||||
Reference in New Issue
Block a user