feat: seo optimizations + opengraph embeds

fix: nullable AuthorUUIDs; assign admins member & mod role
This commit is contained in:
2026-01-06 16:26:47 -05:00
parent a7185d6a3d
commit 3bbd64631a
13 changed files with 288 additions and 14 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ namespace SharpbinV3.Server.Services
};
if (_authSettings.First_User_Admin && !await _db.Users.AnyAsync())
user.Roles = [255];
user.Roles = [0,1,255];
_db.Users.Add(user);
await _db.SaveChangesAsync();
+1 -1
View File
@@ -21,7 +21,7 @@ namespace SharpbinV3.Server.Services
UUID = Guid.CreateVersion7(),
ID = Utilities.GenerateRandomString(8),
Title = title,
AuthorUUID = author?.UUID ?? Guid.Empty,
AuthorUUID = author?.UUID,
User = author,
Content = compressedData,
Size = compressedData.Length,