]> cat aescling's git repositories - mastodon.git/commit
Allow users to delete their header and avatar (#13234)
authorsternenseemann <git@lukasepple.de>
Mon, 20 Apr 2020 12:03:03 +0000 (14:03 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2020 12:03:03 +0000 (14:03 +0200)
commit679980f77c0e869d2eebbf64c18faabd8a523a13
treec160b40a94b74c16c6c68d9ff2c7db39ae35596b
parent29f5353f8b7af331d6dddea4ee1888913361a545
Allow users to delete their header and avatar (#13234)

This is achieved by sending a DELETE request to
/settings/profile/pictures/{avatar,header} via a link that is part of
the upload form's hint of the respective picture.
app/controllers/settings/pictures_controller.rb [new file with mode: 0644]
app/helpers/settings_helper.rb
app/views/settings/profiles/show.html.haml
config/routes.rb