feat: add a wait before a notice can be accepted
This commit is contained in:
@@ -210,6 +210,7 @@ public class NoticeService
|
||||
notice.Title = (draft.Title ?? string.Empty).Trim();
|
||||
notice.Body = (draft.Body ?? string.Empty).Replace("\r\n", "\n", StringComparison.Ordinal).Trim();
|
||||
notice.RequireAccept = draft.RequireAccept;
|
||||
notice.AcceptDelaySeconds = draft.RequireAccept ? draft.AcceptDelaySeconds : 0;
|
||||
notice.Enabled = draft.Enabled;
|
||||
|
||||
var allUsers = draft.Target?.AllUsers ?? true;
|
||||
|
||||
Reference in New Issue
Block a user