diff --git a/app/flatpages/policy_and_guidance.md b/app/flatpages/policy_and_guidance.md index 16de1db..0fe110d 100644 --- a/app/flatpages/policy_and_guidance.md +++ b/app/flatpages/policy_and_guidance.md @@ -125,15 +125,15 @@ Public domain is not a valid license in many countries, please use CC0 or MIT in ## 5. Promotions and Advertisements (inc. asking for donations) -Any information other than the long description - including screenshots - must -not contain any promotions or advertisements. This includes asking for donations, -promoting online shops, or linking to personal websites and social media. +You may note place any promotions or advertisements in any meta data including +screensthos. This includes asking for donations, promoting online shops, +or linking to personal websites and social media. Please instead use the +fields provided on your user profile page to place links to websites and +donation pages. ContentDB is for the community. We may remove any promotions if we feel that they're inappropriate. -Paid promotions are not allowed at all, anywhere. - ## 6. Reporting Violations diff --git a/app/models.py b/app/models.py index cecf765..583c92a 100644 --- a/app/models.py +++ b/app/models.py @@ -129,6 +129,10 @@ class User(db.Model, UserMixin): active = db.Column("is_active", db.Boolean, nullable=False, server_default="0") display_name = db.Column(db.String(100), nullable=False, server_default="") + # Links + website_url = db.Column(db.String(255), nullable=True, default=None) + donate_url = db.Column(db.String(255), nullable=True, default=None) + # Content notifications = db.relationship("Notification", primaryjoin="User.id==Notification.user_id") diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index b725dbe..8216c71 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -217,6 +217,13 @@ + {% if package.author.donate_url %} +