chore: commit workspace updates

This commit is contained in:
ddCat
2026-09-14 01:11:56 +08:00
parent 01a2d171f5
commit 9727656b2b
491 changed files with 12826 additions and 72249 deletions

View File

@@ -14,7 +14,6 @@ const TaskWorkerConcurrency = 3
type Host interface {
RequireAdmin(user *model.User) error
AppendAudit(actor *model.User, action, targetType, targetID, summary string, metadata any) error
DesktopLocalChannelsEnabled() bool
ChannelConcurrencyLimit(channelID string) (int, error)
}
@@ -24,7 +23,6 @@ func (nopHost) RequireAdmin(*model.User) error { return nil }
func (nopHost) AppendAudit(*model.User, string, string, string, string, any) error {
return nil
}
func (nopHost) DesktopLocalChannelsEnabled() bool { return false }
func (nopHost) ChannelConcurrencyLimit(string) (int, error) {
return 0, nil
}
@@ -61,10 +59,3 @@ func (s *Service) appendAdminAudit(actor *model.User, action, targetType, target
}
return s.host.AppendAudit(actor, action, targetType, targetID, summary, metadata)
}
func (s *Service) desktopLocalChannelsEnabled() bool {
if s == nil || s.host == nil {
return false
}
return s.host.DesktopLocalChannelsEnabled()
}