spaceshelter / orbitar

Experimental collective social/blogging platform with self-regulation.
MIT License
61 stars 24 forks source link

Fix orbitarMediaPoster for url with /raw at the end #283

Closed maximt closed 1 year ago

maximt commented 1 year ago

Currently, urls like "https://site/123.mp4" and "https://site/123.mp4/raw" will be rendered differently. Small patch to fix this behavior.

Aivean commented 1 year ago

Found a minor bug:

Works:

<video src="https://host/hash.mp4/raw"/>

Doesn't:

https://host/hash.mp4/raw

Need also to accept /raw suffix here: https://github.com/spaceshelter/orbitar/blob/6c901ec9df8cdfeea94c0b51ea52e7f9f4b787b4/backend/src/parser/TheParser.ts#L213