From ea664188aa26a55b31c5b789cb4a98e33af7fc99 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Tue, 2 Feb 2021 00:51:05 -0800 Subject: turned of preload metadata, might turn on later --- OutboxPost.go | 5 ++--- static/ncatalog.html | 2 +- static/posts.html | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/OutboxPost.go b/OutboxPost.go index c5d5f2a..9d7c004 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -121,8 +121,7 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { SetActorFollowingDB(db, rActivity) MakeActivityRequest(db, activity) } - - w.Write([]byte("")) + break case "Delete": fmt.Println("This is a delete") @@ -572,7 +571,7 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { DeleteObject(db, k.Id) } } - TombstoneObjectFromCache(db, activity.Object.Id) + TombstoneObjectFromCache(db, activity.Object.Id) break } } diff --git a/static/ncatalog.html b/static/ncatalog.html index b4e6f76..a57e291 100644 --- a/static/ncatalog.html +++ b/static/ncatalog.html @@ -49,7 +49,7 @@ if(getMIMEType({{ (index .Attachment 0).MediaType }}) == "video"){ var video = document.createElement("video") video.controls = 'controls' - video.preload = 'metadata' + video.preload = 'none' video.muted = 'muted' video.src = '{{ (index .Attachment 0).Href }}' video.type = '{{ (index .Attachment 0).MediaType }}' diff --git a/static/posts.html b/static/posts.html index 0e381ea..086c5b5 100644 --- a/static/posts.html +++ b/static/posts.html @@ -39,7 +39,7 @@ if(getMIMEType({{ (index .Attachment 0).MediaType }}) == "audio"){ var audio = document.createElement("audio") audio.controls = 'controls' - audio.preload = 'metadata' + audio.preload = 'none' audio.src = '{{ (index .Attachment 0).Href }}' audio.type = '{{ (index .Attachment 0).MediaType }}' audio.style = "float: left; margin-right: 10px; margin-bottom: 10px; width: 250px;" @@ -50,7 +50,7 @@ if(getMIMEType({{ (index .Attachment 0).MediaType }}) == "video"){ var video = document.createElement("video") video.controls = 'controls' - video.preload = 'metadata' + video.preload = 'none' video.muted = 'muted' video.src = '{{ (index .Attachment 0).Href }}' video.type = '{{ (index .Attachment 0).MediaType }}' -- cgit v1.2.3