{"action":"opened","issue":{"url":"https://api.github.com/repos/Piwigo/Piwigo/issues/860","repository_url":"https://api.github.com/repos/Piwigo/Piwigo","labels_url":"https://api.github.com/repos/Piwigo/Piwigo/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/Piwigo/Piwigo/issues/860/comments","events_url":"https://api.github.com/repos/Piwigo/Piwigo/issues/860/events","html_url":"https://github.com/Piwigo/Piwigo/issues/860","id":314478677,"number":860,"title":"Use hash of original images to check for duplicate uploads","user":{"login":"darenwelsh","id":6728676,"avatar_url":"https://avatars0.githubusercontent.com/u/6728676?v=4","gravatar_id":"","url":"https://api.github.com/users/darenwelsh","html_url":"https://github.com/darenwelsh","followers_url":"https://api.github.com/users/darenwelsh/followers","following_url":"https://api.github.com/users/darenwelsh/following{/other_user}","gists_url":"https://api.github.com/users/darenwelsh/gists{/gist_id}","starred_url":"https://api.github.com/users/darenwelsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenwelsh/subscriptions","organizations_url":"https://api.github.com/users/darenwelsh/orgs","repos_url":"https://api.github.com/users/darenwelsh/repos","events_url":"https://api.github.com/users/darenwelsh/events{/privacy}","received_events_url":"https://api.github.com/users/darenwelsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-16T02:15:40Z","updated_at":"2018-04-16T02:15:40Z","closed_at":null,"author_association":"NONE","body":"It appears I am allowed to upload duplicate photos. I was hoping Piwigo would check for duplicates, but it seems it does not. I think one way to do this, as Mediawiki does, is to create a hash for the original image. Then for every image put into the upload queue, create a hash and check if that hash exists in the array of existing hashes.\r\n\r\nI believe I'm using Piwigo version 2.7.4. Note this is a \"one-click install\" on a shared Dreamhost server."}}
{"actor":{"display_login":"darenwelsh"}}