Commit Graph

85 Commits

Author SHA1 Message Date
diced
eb71c2bb54 fix: s3 range requests 2025-01-09 22:54:03 -08:00
ari
c0b2dda7da feat: proper range request handling (#635)
* fix: update to @types/node@18

this fixes the type error at  line 14 of lib/datasources/Local.ts

* feat: proper range request handling

* fix: docker casing warnings

* fix: infinity in header and cleanup

* fix: types for s3 and supabase size return value

* chore: remove unneeded newline

* chore: remove leftover dev comment

* fix: don't use 206 & content-range when client did not request it
2024-12-05 14:31:42 -08:00
astrid
317c7365f8 fix: audio & video scrubbing (#576)
* fix video scrubbing

* fix scrubbing for audio as well
2024-07-19 12:40:52 -07:00
diced
6ef3c8274b fix: password protected non-media files (#496) 2023-11-21 20:10:09 -08:00
Kashall
1f61c56f83 fix: pg int -> bigint (#484) (#459)
* fix: prisma int supports up to 2gb. Bigint supports a lot more than 2gb.

* yes, i ran `yarn migrate:dev`

* fix: cannot assign bigint to number

* fix: 'bigint' is not assignable to type 'number'.

* fix: 'bigint' is not assignable to type 'number'.

* jesus christ

* Well okay then next
2023-11-20 20:59:40 -08:00
diced
f6b995c28d feat: update pkgs & fix lint errors 2023-11-20 20:37:52 -08:00
diced
13a19ccd2b fix: build errors 2023-11-19 17:03:23 -08:00
diced
40fb11256f fix: non-english characters encoding (#471) 2023-10-08 11:06:16 -07:00
Jayvin Hernandez
a2562c5ea2 fix: a lot of stuff (#441): (#410) (#440)
* fix: Compression setting works with the right files

* chore: clean up a debug log

* chore: add debug for why not webhook'd

* fix: No more temp invite when registering.

* fix: Add an error catch so server doesn't crash.

* chore: miniscule cleanup

* fix: Don't double fix dates. It was already fixed once.
2023-07-26 15:07:13 -07:00
diced
d3cb9118ce fix: passing incompatible objects to workers 2023-07-22 22:39:09 -07:00
Jayvin Hernandez
61c87aecdc Added optionally enabling thumbnail generation and fix meta tags for /view endpoint (#437)
* fix: Not null but is false header

* Forgot it was a string 💀

* fix: Improved twitter embedding for images

* fix: Improved twitter embedding for videos

* notFix: Add twitter's meta tags for audio

* fix: Use the full domain + raw path for meta tags.

* fix: You can now optionally enable thumbnails.

* fix: other thing ran 😔

* fix: not-null zws header check

* fix: account for return_https in core config
2023-07-01 19:04:14 -07:00
diced
4a254c55c8 fix: excessive worker count (#425) 2023-06-19 11:24:04 -07:00
dicedtomato
5c424a2c6d feat: video thumbnails (#413) (#376)
* feat: thumbnails workers

* feat: thumbnails final

* fix: no thumbnailId

* fix: unecessary stuff
2023-05-29 19:02:18 -07:00
Jayvin Hernandez
d111b0811f fix: add a debug log (#406) 2023-05-22 15:32:26 -07:00
diced
39a8d52353 feat: built-in robots.txt (#402) 2023-05-13 16:25:27 -07:00
IThundxr
d238e24f62 feat: Add check to prevent favorited files from being deleted (#369)
* additions

* add proper lock system

* migreation

* Revert "migreation"

This reverts commit 4058146c28.

* remove that

* get rid of bad code

---------

Co-authored-by: Jayvin Hernandez <gogojayvin923@gmail.com>
2023-04-12 16:59:30 -07:00
Jayvin Hernandez
5ded128263 fix: user uuid (#355)
* fix: user uuid is used instead of user id for its uniqueness

* fix: use cuid instead & exclude from parser

* fix: apply new foreign key constraints to existing data

* fix: migration partly done

* not-fix: General form of migration achieved, still broken

* fix: migrate and use db's uuid function for existing users

* fix: Proper not nulling!

* fix: #354

* fix: migration & use uuid instead

---------

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
Co-authored-by: diced <pranaco2@gmail.com>
2023-04-04 20:07:41 -07:00
Jayvin Hernandez
bf40fa9cd2 feat: many things (#351)
* remove source from final image

* move check state to ClearStorage

* use inspect for fancy colors

* newlines are now possible! yay!

* Catch user's leave if uploading

* feat?: Temp directory can be specified by the user.
Default is /tmp/zipline (or os equivalent)

* fix: ignore onDash config, use only ?compress query

---------

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
2023-03-31 22:25:00 -07:00
diced
1b505d463c refactor: new eslint changes 2023-03-21 17:53:22 -07:00
Jayvin Hernandez
5b9b454330 feat: multiple stuffs 2023-03-18 20:52:04 -07:00
diced
ac05d82e3a fix: allow download query on non raw 2023-03-04 17:50:14 -08:00
diced
6583f1114c fix: null on non originalName 2023-03-04 17:47:40 -08:00
Jayvin Hernandez
8e44b71614 fix: fix (#310)
* Muted audio by default!

* Code renderin'

* not but still decently standard files being viewable

* reserved routes

* Update validateConfig.ts

---------

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
2023-03-03 20:19:19 -08:00
Jayvin Hernandez
739f584921 fix: spaces and route fixes (#294)
* fix: spaces and route fixes

* fix: shorten url response

* feat: better version checking

* fix: use special characters should work

If it doesn't, better call saul

* save that extra byte

* fix: returning protocol again in domain

unrelated to this pr but whatever

* fix: above ^

* Rename shorten.tsv to shorten.ts

---------

Co-authored-by: diced <pranaco2@gmail.com>
Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
2023-02-23 16:16:11 -08:00
Jayvin Hernandez
55bd72aef8 fix: add a "skip" for fresh db's (#274)
* fix: add a "skip" for fresh db's

* fix: trimming

* fix: elevate logging!
2023-01-26 12:46:10 -08:00
diced
04d03cbc8f fix: ensureDatabaseExists args 2023-01-18 09:25:54 -08:00
diced
4ea1775f2c feat: keep original name #247 2023-01-15 13:57:28 -08:00
diced
a8020ecebe refactor: many columns/tables in prisma 2023-01-15 13:39:07 -08:00
Jayvin Hernandez
2ace076fce fix: cors for files (#257)
Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
2023-01-15 11:26:30 -08:00
diced
2adb355183 feat: download query on /r/ 2023-01-13 17:28:38 -08:00
diced
eef6fdaeb3 feat: tsup, small fixes 2023-01-06 14:45:48 -08:00
diced
fecbf394c1 fix: remove comments 2022-12-11 15:37:59 -08:00
diced
91341e2d21 feat: new variables parser 2022-12-11 15:30:19 -08:00
diced
5d115afa71 feat: update deps & fix stuff 2022-12-10 14:19:53 -08:00
diced
d8b308a18c fix: bind 2022-12-09 19:37:40 -08:00
diced
76267c00d5 fix: attempt to fix #243 2022-12-09 19:31:35 -08:00
diced
d87e465a8e fix: undefined 2022-12-08 18:53:35 -08:00
diced
2c07d6719e feat: save showNonMedia checkbox value 2022-12-08 18:50:00 -08:00
diced
4c633eb60d fix: clean up 2022-12-07 23:11:19 -08:00
diced
ba6580e4ef fix: route not found for nextjs api routes 2022-12-07 23:10:43 -08:00
diced
c21d8f837e feat: built-in ssl support
- CORE_HTTPS is now CORE_RETURN_HTTPS
- SSL_(KEY/CERT/ALLOW_HTTP1)
2022-12-07 19:40:54 -08:00
diced
eadfa09570 refactor: migrate to fastify
- (maybe) faster http server
- easy to develop on
2022-12-07 19:21:26 -08:00
diced
b728ff33ec fix: delete URLs after serving 2022-12-06 16:35:38 -08:00
diced
cfdcf05135 feat: ability to use / for URLS_ROUTE 2022-12-03 14:31:13 -08:00
diced
285ed8d56e fix: actually fix recursive thing 2022-12-03 08:02:16 -08:00
diced
6f3081cb8e feat: headless mode 2022-12-01 09:27:14 -08:00
diced
577195b578 fix: serve favicon.ico always 2022-11-27 20:06:22 -08:00
TacticalCoderJay
a75b790654 fix: allow root route & remove swift refs (#235) (#214)
* fix:
 - readd root route for uploads only
 - catch 1 edge case for root route (/dashboard)

* fix: spelt dashboard right

* fix: include the dot for the extension

* fix: remove any possible references of swift

* fix: missed a spot

* Update .env.local.example

Co-authored-by: Jonathan <axis@axis.moe>

* Update .env.local.example

* Update validateConfig.ts

* format

Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
Co-authored-by: Jonathan <axis@axis.moe>
2022-11-27 18:20:29 -08:00
diced
659868181d feat: supabase datasource & remove swift 2022-11-25 14:30:18 -08:00
diced
24f8300b2c fix: delete invites that expired or are used 2022-11-19 17:16:46 -08:00