From c6efea39711636b9c954f1bcbffbd46b6dbdc050 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 25 Sep 2019 17:12:55 +0100 Subject: [PATCH] non-CWed pleroma posts have content as "", not null --- modules/fediverse/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/fediverse/__init__.py b/modules/fediverse/__init__.py index e3c9ac63..d3a634fa 100644 --- a/modules/fediverse/__init__.py +++ b/modules/fediverse/__init__.py @@ -93,7 +93,7 @@ class Module(ModuleManager.BaseModule): shorturl = self.exports.get_one("shorturl")(event["server"], url, context=event["target"]) - if not cw == None: + if cw: out = "CW: %s - %s" % (cw, shorturl) else: out = "%s - %s" % (out, shorturl)