mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-05 14:55:20 +02:00
Merge #2513
2513: fix(auto-reply): include start and end dates in the auto-reply period r=mergify[bot] a=bb-wkr ## What type of PR? bug-fix ## What does this PR do? Include start and end dates in the auto-reply period ### Related issue(s) closes #2512 ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry is not applicable, you can check it or remove it from the list. - [X] In case of feature or enhancement: documentation updated accordingly - [X] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: wkr <wkr@bitsbeats.com>
This commit is contained in:
commit
5b2b379c91
@ -546,8 +546,8 @@ class User(Base, Email):
|
||||
now = date.today()
|
||||
return (
|
||||
self.reply_enabled and
|
||||
self.reply_startdate < now and
|
||||
self.reply_enddate > now
|
||||
self.reply_startdate <= now and
|
||||
self.reply_enddate >= now
|
||||
)
|
||||
|
||||
@property
|
||||
|
1
towncrier/newsfragments/2512.bugfix
Normal file
1
towncrier/newsfragments/2512.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix: include start and end dates in the auto-reply period
|
Loading…
x
Reference in New Issue
Block a user