From f74348e907a3a2657aa1db39c6ead2af9f91e26e Mon Sep 17 00:00:00 2001 From: db0 Date: Tue, 12 Sep 2023 14:04:12 +0200 Subject: [PATCH] doc: changelog --- CHANGELOG.md | 4 ++++ fediseer/apis/models/v1.py | 4 ++-- fediseer/consts.py | 2 +- sql_statements/0.11.0.txt | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 sql_statements/0.11.0.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index 98a96fc..a6d0d87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# 0.11.0 + +* Can now provide evidence for censures + # 0.10.0 Added `/api/v1/reports` endpoint which can show and filter recent actions on the fediseer diff --git a/fediseer/apis/models/v1.py b/fediseer/apis/models/v1.py index 54115eb..ba5e3d0 100644 --- a/fediseer/apis/models/v1.py +++ b/fediseer/apis/models/v1.py @@ -56,7 +56,7 @@ class Models: }) self.input_censures_modify = api.model('ModifyCensure', { 'reason': fields.String(required=False, description="The reason for this censure. No profanity or hate speech allowed!", example="csam"), - 'evidence': fields.String(required=False, description="The evidence for this censure. Typically URL but can be a long form of anything you feel appropriate.", example="https://link.to/your/evidence"), + 'evidence': fields.String(required=False, description="The evidence for this censure. Typically URL but can be a long form of anything you feel appropriate.", example="https://link.to/your/evidence", max_length=1000), }) self.response_model_api_key_reset = api.model('ApiKeyReset', { "message": fields.String(default='OK',required=True, description="The result of this operation."), @@ -73,5 +73,5 @@ class Models: 'target_domain': fields.String(description="The instance domain which was the target of this activity", example="lemmy.dbzer0.com"), 'report_type': fields.String(description="The type of report activity", enum=[e.name for e in enums.ReportType]), 'report_activity': fields.String(description="The activity reported", enum=[e.name for e in enums.ReportActivity]), - 'created': fields.DateTime(description="The date this record was added"), + 'created': fields.DateTime(description="The date this record was added",), }) \ No newline at end of file diff --git a/fediseer/consts.py b/fediseer/consts.py index d385f12..59b1764 100644 --- a/fediseer/consts.py +++ b/fediseer/consts.py @@ -1,4 +1,4 @@ -FEDISEER_VERSION = "0.10.0" +FEDISEER_VERSION = "0.11.0" SUPPORTED_SOFTWARE = [ "lemmy", "mastodon", diff --git a/sql_statements/0.11.0.txt b/sql_statements/0.11.0.txt new file mode 100644 index 0000000..19991e3 --- /dev/null +++ b/sql_statements/0.11.0.txt @@ -0,0 +1 @@ +ALTER TABLE censures ADD COLUMN evidence TEXT; \ No newline at end of file