mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: allow staff members to see user's unlisted pastes; show dislikes in the paste lists
This commit is contained in:
@@ -397,6 +397,8 @@ namespace SharpbinV3.Server.Controllers
|
||||
Visibility = p.Visibility,
|
||||
ExpiresAt = p.ExpiresAt,
|
||||
EditedAt = p.EditedAt,
|
||||
Likes = p.PositiveInteractionCount,
|
||||
Dislikes = p.NegativeInteractionCount,
|
||||
Author =
|
||||
p.User != null && p.User.Visibility == 0
|
||||
? new UserSimpleDto
|
||||
|
||||
Reference in New Issue
Block a user