mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
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:
@@ -77,7 +77,7 @@ export const load: PageServerLoad = async ({ params, fetch, cookies, url, parent
|
||||
|
||||
if (token && !asGuest && canModerate && (!reportsSubmitted || !isOwner)) {
|
||||
headers.set('Authorization', `Bearer ${token}`);
|
||||
const submittedRes = await fetch(`${apiUrl}/api/user/${user.uuid}/reports/submitted`, {
|
||||
const submittedRes = await fetch(`${apiUrl}/api/report/users/${user.uuid}/reports/submitted`, {
|
||||
headers: headers
|
||||
});
|
||||
if (submittedRes.ok) reportsSubmitted = await submittedRes.json();
|
||||
@@ -85,7 +85,7 @@ export const load: PageServerLoad = async ({ params, fetch, cookies, url, parent
|
||||
|
||||
if (token && !asGuest && !isOwner && canModerate) {
|
||||
headers.set('Authorization', `Bearer ${token}`);
|
||||
const r = await fetch(`${apiUrl}/api/user/${user.uuid}/reports`, {
|
||||
const r = await fetch(`${apiUrl}/api/report/users/${user.uuid}/reports`, {
|
||||
headers: headers
|
||||
});
|
||||
if (r.ok) reportsTarget = await r.json();
|
||||
|
||||
Reference in New Issue
Block a user