Skip to content
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

Issue 774: drop anonymous imgur upload support #775

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@
* image is inserted as BBcode. Use {@link DialogFragment#setTargetFragment(Fragment, int)} to pass
* the {@link MessageComposer} where the code will be inserted.
*/

/** This is Dead Code as of 16/05/2023, Imgur no longer supports anonymous uploads and will be
* purging anonymously uploaded images (probably) starting in mid-May 2023
*/

//TODO: delete this code and/or update it to support logged-in users

public class ImgurInserter extends DialogFragment {

public static final String TAG = "ImgurInserter";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
case R.id.bbcode_image:
insertWith(ImageInserter::smartInsert);
break;
case R.id.bbcode_imgur:
ImgurInserter imgurInserter = new ImgurInserter();
imgurInserter.setTargetFragment(this, -1);
// TODO: 29/12/2017 switch this to childFragmentManager and test
imgurInserter.show(getFragmentManager(), "imgur uploader");
break;
// removed imgur inserter due to change in Imgur TOS
case R.id.bbcode_video:
insertWith(VideoInserter::smartInsert);
break;
Expand Down