Now we can share a char to other users

only in DB no UI yet
This commit is contained in:
2026-02-01 21:32:48 +01:00
parent 5152600ea3
commit 321339861f
5 changed files with 61 additions and 0 deletions
+8
View File
@@ -59,6 +59,14 @@ func ListCharacters(c *gin.Context) {
respondWithError(c, http.StatusInternalServerError, "Failed to retrieve public characters")
return
}
listShared, err := models.FindSharedCharList(c.GetUint("userID"))
if err != nil {
logger.Error("Fehler beim Laden der geteilten Charaktere: %s", err.Error())
respondWithError(c, http.StatusInternalServerError, "Failed to retrieve shared characters")
return
}
listPublic = append(listPublic, listShared...)
allCharacters.Others = listPublic
logger.Info("Charakterliste erfolgreich geladen: %d Charaktere", len(listOfChars))