From 09b1e32be7befa40be6594a2a0ba182be3e12651 Mon Sep 17 00:00:00 2001 From: Blagovest Petrov Date: Sat, 5 Nov 2016 15:59:01 +0200 Subject: [PATCH] Updated the SEND function to cut DOS strings --- server/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index 38a47f6..2598da7 100644 --- a/server/server.py +++ b/server/server.py @@ -36,7 +36,8 @@ class TwitterApi(): api = tweepy.API(auth) def send(self, tweet): - self.api.update_status(status=tweet) + response = self.tweet[27:] + self.api.update_status(status=self.response) def get_tweets_by_tag(self, tag): tweets = ""