fix: sync monoforum suggested post flow

This commit is contained in:
A 2026-07-22 16:08:44 +08:00
parent 511f25efc2
commit 401a8f148e
35 changed files with 2415 additions and 144 deletions

View file

@ -454,7 +454,7 @@ func (s *ChannelStore) monoforumAdminPreview(ctx context.Context, db sqlcgen.DBT
}
return domain.ChannelMember{}, domain.Channel{}, false, err
}
if !isChannelAdmin(parentMember) {
if !parentMember.CanManageDirectMessages() {
return domain.ChannelMember{}, domain.Channel{}, false, nil
}
return syntheticMonoforumAdminMember(mono, parentMember), parent, true, nil