mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 22:47:36 +01:00
Add WTFPL warning on new packages
This commit is contained in:
parent
5aaee010c1
commit
b8decafd75
42
app/flatpages/help/wtfpl.md
Normal file
42
app/flatpages/help/wtfpl.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
title: WTFPL is a terrible license
|
||||||
|
no_h1: true
|
||||||
|
|
||||||
|
<div id="warning" class="box box_grey alert alert-warning">
|
||||||
|
<span class="icon_message"></span>
|
||||||
|
|
||||||
|
Please reconsider the choice of WTFPL as a license.
|
||||||
|
|
||||||
|
<script src="/static/jquery.min.js"></script>
|
||||||
|
<script>
|
||||||
|
// @author rubenwardy
|
||||||
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||||||
|
|
||||||
|
var params = new URLSearchParams(location.search);
|
||||||
|
var r = params.get("r");
|
||||||
|
if (r)
|
||||||
|
document.write("<a class='alert_right button' href='" + r + "'>Okay</a>");
|
||||||
|
else
|
||||||
|
$("#warning").hide();
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
# WTFPL is a terrible license
|
||||||
|
|
||||||
|
The use of WTFPL as a license is discouraged for multiple reasons.
|
||||||
|
|
||||||
|
* **No Warranty disclaimer:** This could open you up to being sued.<sup>[1]</sup>
|
||||||
|
* **Swearing:** This prevents settings like schools from using your content.
|
||||||
|
* **Not OSI Approved:** Same as public domain?
|
||||||
|
|
||||||
|
The Open Source Initiative chose not to approve the license as an open-source
|
||||||
|
license, saying:<sup>[3]</sup>
|
||||||
|
|
||||||
|
> It's no different from dedication to the public domain.
|
||||||
|
> Author has submitted license approval request – author is free to make public domain dedication.
|
||||||
|
> Although he agrees with the recommendation, Mr. Michlmayr notes that public domain doesn't exist in Europe. Recommend: Reject.
|
||||||
|
|
||||||
|
## Sources
|
||||||
|
|
||||||
|
1. [WTFPL is harmful to software developers](https://cubicspot.blogspot.com/2017/04/wtfpl-is-harmful-to-software-developers.html)
|
||||||
|
2. [FSF](https://www.gnu.org/licenses/license-list.en.html)
|
||||||
|
3. [OSI](https://opensource.org/minutes20090304)
|
@ -107,8 +107,9 @@ It is recommended that you use a proper license for code with a warranty
|
|||||||
disclaimer, such as the (L)GPL or MIT. You should also use a proper media license
|
disclaimer, such as the (L)GPL or MIT. You should also use a proper media license
|
||||||
for media, such as a Creative Commons license.
|
for media, such as a Creative Commons license.
|
||||||
|
|
||||||
The use of WTFPL is discouraged as it doesn't contain a valid warranty disclaimer,
|
The use of WTFPL is discouraged as it doesn't contain a [valid warranty disclaimer](https://cubicspot.blogspot.com/2017/04/wtfpl-is-harmful-to-software-developers.html),
|
||||||
and also includes swearing which dissuades teachers from using your content.
|
and also includes swearing which prevents settings like schools from using your content.
|
||||||
|
[Read more](/help/wtfpl/).
|
||||||
|
|
||||||
Public domain is not a valid license in many countries, please use CC0 or MIT instead.
|
Public domain is not a valid license in many countries, please use CC0 or MIT instead.
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ page['title'] }}</h1>
|
{% if not page["no_h1"] %}<h1>{{ page['title'] }}</h1>{% endif %}
|
||||||
|
|
||||||
{{ page.html | safe }}
|
{{ page.html | safe }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -325,11 +325,15 @@ def create_edit_package_page(author=None, name=None):
|
|||||||
|
|
||||||
db.session.commit() # save
|
db.session.commit() # save
|
||||||
|
|
||||||
|
next_url = package.getDetailsURL()
|
||||||
if wasNew and package.repo is not None:
|
if wasNew and package.repo is not None:
|
||||||
task = importRepoScreenshot.delay(package.id)
|
task = importRepoScreenshot.delay(package.id)
|
||||||
return redirect(url_for("check_task", id=task.id, r=package.getDetailsURL()))
|
next_url = url_for("check_task", id=task.id, r=next_url)
|
||||||
|
|
||||||
return redirect(package.getDetailsURL())
|
if wasNew and ("WTFPL" in package.license.name or "WTFPL" in package.media_license.name):
|
||||||
|
next_url = url_for("flatpage", path="help/wtfpl", r=next_url)
|
||||||
|
|
||||||
|
return redirect(next_url)
|
||||||
|
|
||||||
package_query = Package.query.filter_by(approved=True, soft_deleted=False)
|
package_query = Package.query.filter_by(approved=True, soft_deleted=False)
|
||||||
if package is not None:
|
if package is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user