add join role endpoint and persistency for hubs

This commit is contained in:
2026-05-06 19:08:18 +02:00
parent 03c13a6e8a
commit f68a249268
12 changed files with 991 additions and 206 deletions
+4
View File
@@ -17,6 +17,7 @@ const (
profileBg
hubIcon
hubBackground
channelIcon
)
func validCheckWithResponseOnFail(response http.ResponseWriter, request *http.Request, pt bodyLimit) bool {
@@ -37,6 +38,9 @@ func validCheckWithResponseOnFail(response http.ResponseWriter, request *http.Re
case hubBackground:
maxSize = int64(config.MaxRequestWithHubBackgroundBytes)
break
case channelIcon:
maxSize = int64(config.MaxRequestWithHubIconBytes)
break
default:
maxSize = int64(config.MaxRequestBytes)
}