Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: video and audio can't play on safari (#980)
Wujiao2330aaf1537170e
diff --git a/server/resource.go b/server/resource.goindex 9b6277339..60b7df7ad 100644--- a/server/resource.go+++ b/server/resource.go@@ -274,6 +274,10 @@ func (s *Server) registerResourcePublicRoutes(g *echo.Group) {}c.Response().Writer.Header().Set(echo.HeaderCacheControl, "max-age=31536000, immutable")c.Response().Writer.Header().Set(echo.HeaderContentSecurityPolicy, "default-src 'self'")+ if strings.HasPrefix(resourceType, "video") || strings.HasPrefix(resourceType, "audio") {+ http.ServeContent(c.Response(), c.Request(), resource.Filename, time.Unix(resource.UpdatedTs, 0), bytes.NewReader(resource.Blob))+ return nil+ }return c.Stream(http.StatusOK, resourceType, bytes.NewReader(resource.Blob))})}