mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix long audit descriptions being lost
This commit is contained in:
parent
157f418855
commit
c927a87db3
@ -95,6 +95,8 @@ class AuditLogEntry(db.Model):
|
||||
|
||||
def __init__(self, causer, severity, title, url, package=None, description=None):
|
||||
if len(title) > 100:
|
||||
if description is None:
|
||||
description = title[99:]
|
||||
title = title[:99] + "…"
|
||||
|
||||
self.causer = causer
|
||||
|
Loading…
Reference in New Issue
Block a user