]> git.ipfire.org Git - dbl.git/commitdiff
api: Don't show own username on duplicate reports
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Mar 2026 15:02:03 +0000 (15:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Mar 2026 15:02:03 +0000 (15:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/api/reports.py

index 29db37ce363cb2b6f6128e1859cf8f6f9b347d8a..681a138530611527f7e445634e50dc50aff014e3 100644 (file)
@@ -119,7 +119,7 @@ async def create_report(
 
        # Check if something has already been reported
        if await list.recently_reported(name=report.name, reported_by=user, block=report.block):
-               raise fastapi.HTTPException(409, "%s has already been reported by %s" % (report.name, user))
+               raise fastapi.HTTPException(409, "%s has already been reported by yourself" % report.name)
 
        # Create the report
        return await list.report(