non-CWed pleroma posts have content as "", not null

This commit is contained in:
jesopo 2019-09-25 17:12:55 +01:00
parent 6199086dc5
commit c6efea3971

View file

@ -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)