mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: seo optimizations + opengraph embeds
fix: nullable AuthorUUIDs; assign admins member & mod role
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user