-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add Option to delete the uploaded image. #1139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Once you release a picture under an open license, you can not retract it. |
AFAIK you can nominate your own photo for deletion, but indeed it is up to the discretion of the Commons community. It would certainly be nice if we had a button for this, though. :) |
Is anyone working on adding a button to request deletion? I'd like to take it up otherwise. |
@diddypod Could you please first describe exactly what actions the button will call, using what Wikimedia API requests? (complete with the API method parameters) |
IMHO It should basically nominate the picture for deletion.There is a link for that in the sidebar. Would that be possible? |
I did a bit more reading and found that API:Delete is not for nomination. A better choice would be to use API:Edit to edit the relevant pages as described in Commons:Deletion requests/Listing a request manually. As for the Nominate for Deletion buttons on the page, it uses JavaScript to update the relevant pages. However, I've been having difficulty in trying to inject text into the text field using JavaScript in a webView. If someone can help me with that, I think I can implement this feature using the Nominate button. |
I've managed to get the script injection working. Should I take this up? @nicolas-raoul @misaochan |
@diddypod If you have started working on in you work on it. I will work on other issues. |
@diddypod Nice! I'm inclined to say yes, but probably best to wait for @nicolas-raoul to confirm. |
@diddypod Sorry for the delay! I guess that only administrators have the permission to use API:Delete, so you are right that the best is to edit the relevant pages as described in Commons:Deletion requests/Listing a request manually. Do you mean you have succeeded to create the deletion request? Nice job! In that case, waiting for your pull request :-) |
I've tried using the method described by @VojtechDostal above, i.e. using the JavaScript on the File page to Nominate for deletion. However, since I'm using a WebView for it, the user is not logged in by default. Should I prompt the user to Log In once more or is it fine to send the Delete Request without logging in? (In this case the IP of the user will be recorded instead of their username on the relevant pages). |
Rather than prompt for a user/password again (with the associated security risks), better:
|
Okay, I'll do that. Starting work on it :) |
@diddypod Also if you get stuck you could also ask MediaWiki folks to help you out by raising a ticket here. |
I have implemented the feature using the API, but I'm having a bit of trouble trying to disable the nomination process once a successful deletion is processed. |
@diddypod Can you open a PR for the same. It would be easier to review that way. :) |
Fix #1139: Nominate uploaded image for deletion
Summary
Sometimes we upload images that are not good and later on we should have an option to delete or suspend the image. This can be done by providing buttons in image list on clicking will call an HTTP request to delete/Suspend it from the database.
The text was updated successfully, but these errors were encountered: