mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 09:49:05 +01:00
Add patches by ShittyKopper, Wait No, Allow proxying of videos and audio, add sharkey migration script
This commit is contained in:
parent
fa1fbbeff7
commit
3cf121bf5c
1061
docs/sharkey.sql
Normal file
1061
docs/sharkey.sql
Normal file
File diff suppressed because it is too large
Load Diff
@ -54,7 +54,7 @@ searchUser: "Nach einem Nutzer suchen"
|
|||||||
reply: "Antworten"
|
reply: "Antworten"
|
||||||
loadMore: "Mehr laden"
|
loadMore: "Mehr laden"
|
||||||
showMore: "Mehr anzeigen"
|
showMore: "Mehr anzeigen"
|
||||||
showLess: "Schließen"
|
showLess: "Warte, nein"
|
||||||
youGotNewFollower: "folgt dir"
|
youGotNewFollower: "folgt dir"
|
||||||
receiveFollowRequest: "Follow-Anfrage erhalten"
|
receiveFollowRequest: "Follow-Anfrage erhalten"
|
||||||
followRequestAccepted: "Follow-Anfrage akzeptiert"
|
followRequestAccepted: "Follow-Anfrage akzeptiert"
|
||||||
|
@ -65,7 +65,7 @@ newer: "newer"
|
|||||||
older: "older"
|
older: "older"
|
||||||
expandAllCws: "Show content for all replies"
|
expandAllCws: "Show content for all replies"
|
||||||
collapseAllCws: "Hide content for all replies"
|
collapseAllCws: "Hide content for all replies"
|
||||||
showLess: "Show less"
|
showLess: "Wait no"
|
||||||
youGotNewFollower: "followed you"
|
youGotNewFollower: "followed you"
|
||||||
receiveFollowRequest: "Follow request received"
|
receiveFollowRequest: "Follow request received"
|
||||||
followRequestAccepted: "Follow request accepted"
|
followRequestAccepted: "Follow request accepted"
|
||||||
|
@ -112,9 +112,7 @@ export async function proxyMedia(ctx: Koa.Context) {
|
|||||||
};
|
};
|
||||||
} else if (mime === "image/svg+xml") {
|
} else if (mime === "image/svg+xml") {
|
||||||
image = await convertToWebp(path, 2048, 2048, 1);
|
image = await convertToWebp(path, 2048, 2048, 1);
|
||||||
} else if (
|
} else if (!FILE_TYPE_BROWSERSAFE.includes(mime)) {
|
||||||
!(mime.startsWith("image/") && FILE_TYPE_BROWSERSAFE.includes(mime))
|
|
||||||
) {
|
|
||||||
throw new StatusError("Rejected type", 403, "Rejected type");
|
throw new StatusError("Rejected type", 403, "Rejected type");
|
||||||
} else {
|
} else {
|
||||||
image = {
|
image = {
|
||||||
|
Loading…
Reference in New Issue
Block a user