mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-14 02:34:22 +02:00
prefer non-wildcard aliases over wildcard aliases
This commit is contained in:
parent
79768c09f6
commit
8fe9e695f3
@ -426,7 +426,7 @@ class Alias(Base, Email):
|
||||
)
|
||||
)
|
||||
)
|
||||
).order_by(sqlalchemy.func.char_length(cls.localpart).desc()).first()
|
||||
).order_by(cls.wildcard, sqlalchemy.func.char_length(cls.localpart).desc()).first()
|
||||
|
||||
|
||||
class Token(Base):
|
||||
|
Loading…
Reference in New Issue
Block a user