feat: comments & paste/comment reactions; renames/refactors

this is a LOT, i should've commited in stages but oh well, from what i can remember:
- paste interactions (reactions)
- comments
- comment interactions (reactions)
- rich text editor
- move all report apis into report controller
- rename size to sizeStored
- rename trueSize to originalSize
- fixed compression on paste compression
    - implemented compression threshold
- use longs instead of ints where possible in the entities
- improve record view + remove redundant check for existing view
This commit is contained in:
2026-04-24 08:52:33 -04:00
parent f82d314d80
commit 63b77bece9
43 changed files with 4560 additions and 403 deletions
+2 -4
View File
@@ -26,7 +26,7 @@ namespace SharpbinV3.Server.Services
return report;
}
public async Task<Report> CreateReport(Guid reporterUUID, ReportTargetType targetType, int? pastePID, ReportType type, string description)
public async Task<Report> CreateReport(Guid reporterUUID, ReportTargetType targetType, long? pastePID, ReportType type, string description)
{
var report = new Report
{
@@ -55,9 +55,7 @@ namespace SharpbinV3.Server.Services
q = q.Where(r => r.PastePID == query.PastePID);
if (query.PasteId != null)
{
q = q.Where(r => _db.Pastes.Where(p => p.ID == query.PasteId).Select(p => (int?)p.PID).Contains(r.PastePID));
}
q = q.Where(r => r.Paste != null && r.Paste.ID == query.PasteId);
if (query.TargetType != null)
q = q.Where(r => r.TargetType == query.TargetType);