mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
Refactor paste.js to improve readability and maintainability; introduce ELEMENTS utility for DOM manipulation, enhance modal functionality, and streamline password handling for private pastes. Update user.js to correct API endpoint for user information retrieval. Add modal.js for reusable modal components and styles. Update paste.html to include modal.js and adjust edit button visibility. Minor fixes in main.js for consistent formatting.
This commit is contained in:
@@ -308,7 +308,7 @@ namespace SharpbinV2.Server.Controllers
|
||||
int pages = await _databaseService.EnumerateUserPastes(user) / limit;
|
||||
if (page > pages)
|
||||
return BadRequest(new { success = false, message = "Page number exceeds available pages." });
|
||||
List<Paste?>? pastes = await _databaseService.GetPastesFromUser(user, limit, page, _logger);
|
||||
List<Paste?>? pastes = await _databaseService.GetPastesFromUser(user, limit, page, _logger, true);
|
||||
if (pastes == null || pastes.Count == 0)
|
||||
return NotFound(new { success = false, message = "No pastes found." });
|
||||
var pasteList = new List<object>();
|
||||
|
||||
Reference in New Issue
Block a user