We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 083f39f + 87077aa commit 3b8b460Copy full SHA for 3b8b460
1 file changed
apis/backendApi/postAPI.py
@@ -57,6 +57,7 @@ def get_post_preview(db, body):
57
returnPost['flair'] = post.flair
58
words = post.message.split(' ')
59
if len(words) > 100:
60
+ words = words[:100]
61
words.append("...")
62
returnPost['content'] = " ".join(words)
63
returnPayload.append(returnPost)
0 commit comments