mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-26 07:51:31 +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:
|
if content["quoted"] is not None:
|
||||||
message.reply = content["quoted"]
|
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:
|
else:
|
||||||
message.reply = None
|
message.reply = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user