zephyr_mirror: Fix display of personals on non-message classes.
(imported from commit 42ff030d2d78c530428dcede406d46fc71521fef)
This commit is contained in:
parent
30f234d42d
commit
121c3cb9c8
|
@ -288,8 +288,16 @@ def process_notice(notice, log):
|
||||||
zeph["subject"] = '(instance "%s")' % (notice.instance,)
|
zeph["subject"] = '(instance "%s")' % (notice.instance,)
|
||||||
|
|
||||||
# Add instances in for instanced personals
|
# Add instances in for instanced personals
|
||||||
if zeph['type'] == "private" and notice.instance.lower() != "personal":
|
if is_personal:
|
||||||
zeph["content"] = "[-i %s]" % (notice.instance,) + "\n" + zeph["content"]
|
if notice.cls.lower() != "message" and notice.instance.lower != "personal":
|
||||||
|
heading = "[-c %s -i %s]\n" % (notice.cls, notice.instance)
|
||||||
|
elif notice.cls.lower() != "message":
|
||||||
|
heading = "[-c %s]\n" % (notice.cls,)
|
||||||
|
elif notice.instance.lower() != "personal":
|
||||||
|
heading = "[-i %s]\n" % (notice.instance,)
|
||||||
|
else:
|
||||||
|
heading = ""
|
||||||
|
zeph["content"] = heading + zeph["content"]
|
||||||
|
|
||||||
zeph = decode_unicode_byte_strings(zeph)
|
zeph = decode_unicode_byte_strings(zeph)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue