SoylentNews / rehash

Forked from Slashcode, rehash is the codebase that powers SoylentNews.org, powered by mod_perl 2
http://soylentnews.org
GNU General Public License v2.0
57 stars 26 forks source link

Feature: Warn submitter that they are submitting a story with no link in it #379

Open soytakyon opened 7 years ago

soytakyon commented 7 years ago

<Soylentbob> Q: I submitted an article yesterday and forgot to put any link to the source. Could we have some automated checks when submitting? Not necessarily an error, because there might be legitimate use-cases for articles without a link, but at least a prominent warning...

<takyon_> I can develop a check into my extension. Since most editors use it, it might catch some instances

<Soylentbob> Would be great, if the submitter could see the warning already. For editors it is usually more hassle to look up where the story might come from. Submitter usually should have the story open anyway

One trivial way to do this would be to add a JavaScript prompt that pops up if no URLs are detected in a submission. Ex. "Are you sure you want to submit a story with no URL in it?" Cancelling the prompt would return false and prevent the button event.

You could have an exemption for submissions that have the "Answers" topic selected, since these often don't require a link.