[MM-64360] Data retention: optionally preserve pinned posts (#31165)
* add new config to preserve pinned posts during data retention * more graceful error if the pinned post was a reply in a deleted thread
Этот коммит содержится в:
@@ -91,6 +91,13 @@ type RetentionIdsForDeletion struct {
|
||||
Ids []string
|
||||
}
|
||||
|
||||
type RetentionPolicyBatchConfigs struct {
|
||||
Now int64
|
||||
GlobalPolicyEndTime int64
|
||||
Limit int64
|
||||
PreservePinnedPosts bool
|
||||
}
|
||||
|
||||
func (r *RetentionIdsForDeletion) PreSave() {
|
||||
if r.Id == "" {
|
||||
r.Id = NewId()
|
||||
|
||||
Ссылка в новой задаче
Block a user