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

Ability to edit pastes #281

Open
Fabizocker456 opened this issue Aug 11, 2024 · 0 comments
Open

Ability to edit pastes #281

Fabizocker456 opened this issue Aug 11, 2024 · 0 comments

Comments

@Fabizocker456
Copy link

It would be nice if users had the ability to edit pastes. If I share code via this pastebin, I may want to add more files, replace existing ones with updated versions, or maybe even delete unimportant ones.
To prevent DoS attacks/spamming, a long ratelimit (30 seconds or more) could be triggered on new file creation, and after a certain amount of time (1/4 of expiry?), editing could be blocked.
This could possibly be implemented in the API via another endpoint, whose URL is intentionally un-guessable (similar to deletion), and which is returned together with the paste/delete URL in the creation response (possibly only if a certain flag is set during creation, e.g. {.., "editable": true}, to remain fully backwards compatible)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant