mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-02-17 22:36:21 +00:00
Limit the reply quote length
This commit is contained in:
@@ -338,7 +338,10 @@ def messages(db, data, media_folder):
|
||||
|
||||
if content["quoted"] is not None:
|
||||
message.reply = content["quoted"]
|
||||
message.quoted_data = content["quoted_data"]
|
||||
if content["quoted_data"] is not None and len(content["quoted_data"]) > 200:
|
||||
message.quoted_data = content["quoted_data"][:201] + "..."
|
||||
else:
|
||||
message.quoted_data = content["quoted_data"]
|
||||
else:
|
||||
message.reply = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user