fixed user's destination property

self.forward_destination is a list (and not string)
master
Alexander Graf 4 years ago
parent 5dfccdafe9
commit c26ddd3c68

@ -346,10 +346,10 @@ class User(Base, Email):
@property @property
def destination(self): def destination(self):
if self.forward_enabled: if self.forward_enabled:
result = self.forward_destination result = list(self.forward_destination)
if self.forward_keep: if self.forward_keep:
result += ',' + self.email result.append(self.email)
return result return ','.join(result)
else: else:
return self.email return self.email

Loading…
Cancel
Save