this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

tweaks for no text posts

+7 -1
+3
bookmark_handler.go
··· 68 68 } 69 69 70 70 content := postRecord.Text 71 + if content == "" { 72 + content = "post contained no text" 73 + } 71 74 if len(content) > 75 { 72 75 content = fmt.Sprintf("%s...", content[:75]) 73 76 }
+3
dm_handler.go
··· 232 232 233 233 func (d *DmService) handleCreateBookmark(msg Message) error { 234 234 content := msg.Embed.Record.Value.Text 235 + if content == "" { 236 + content = "post contained no text" 237 + } 235 238 if len(content) > 75 { 236 239 content = fmt.Sprintf("%s...", content[:75]) 237 240 }
+1 -1
frontend/base_templ.go
··· 29 29 templ_7745c5c3_Var1 = templ.NopComponent 30 30 } 31 31 ctx = templ.ClearChildren(ctx) 32 - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\"><head><title>BSFeeder</title><link rel=\"icon\" type=\"image/x-icon\" href=\"/public/favicon.ico\"><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><link href=\"/public/styles.css\" rel=\"stylesheet\"><script defer src=\"https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js\"></script><script src=\"https://unpkg.com/htmx.org\"></script><script src=\"https://unpkg.com/htmx.org@1.9.11\" defer></script><script src=\"https://unpkg.com/htmx.org@1.9.12/dist/ext/json-enc.js\"></script><script src=\"https://unpkg.com/htmx.org@1.9.11/dist/ext/response-targets.js\"></script></head><body hx-ext=\"response-targets\" class=\"antialiased\">") 32 + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<!doctype html><html lang=\"en\"><head><title>Bsky-bookmark</title><link rel=\"icon\" type=\"image/x-icon\" href=\"/public/favicon.ico\"><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><link href=\"/public/styles.css\" rel=\"stylesheet\"><script defer src=\"https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js\"></script><script src=\"https://unpkg.com/htmx.org\"></script><script src=\"https://unpkg.com/htmx.org@1.9.11\" defer></script><script src=\"https://unpkg.com/htmx.org@1.9.12/dist/ext/json-enc.js\"></script><script src=\"https://unpkg.com/htmx.org@1.9.11/dist/ext/response-targets.js\"></script></head><body hx-ext=\"response-targets\" class=\"antialiased\">") 33 33 if templ_7745c5c3_Err != nil { 34 34 return templ_7745c5c3_Err 35 35 }