From 033054821b75becffa4c0104114c9d31ac9c5d6b Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Thu, 9 Nov 2017 14:04:16 -0800 Subject: [PATCH] make sure final post actually gets added to list --- ttadmin/common/social.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ttadmin/common/social.py b/ttadmin/common/social.py index 1287a44..72966d8 100644 --- a/ttadmin/common/social.py +++ b/ttadmin/common/social.py @@ -27,6 +27,8 @@ def split_posts_by_length(text, length): else: posts.append(post) post = chunk + if post: + posts.append(post) return posts