From 5fa254d7646dacfaca4c468485c18e6cc2f06e3b Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Tue, 14 Jul 2020 21:10:21 +0100 Subject: [PATCH] Status gains 'text' property, at present a synonym of 'content' --- kepi/trilby_api/models/status.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kepi/trilby_api/models/status.py b/kepi/trilby_api/models/status.py index f458d41..46b6d67 100644 --- a/kepi/trilby_api/models/status.py +++ b/kepi/trilby_api/models/status.py @@ -277,3 +277,11 @@ class Status(models.Model): @property def is_reply(self): return self.in_reply_to is not None + + @property + def text(self): + # XXX It's possible that one of (text, content) is + # HTML and one is plain text. But the docs don't + # seem to be forthcoming on this point, so we'll + # just have to wait until we find out. + return self.content