diff --git a/bookmark_handler.go b/bookmark_handler.go index 505443c..0f408db 100644 --- a/bookmark_handler.go +++ b/bookmark_handler.go @@ -68,6 +68,9 @@ func (s *Server) HandleAddBookmark(w http.ResponseWriter, r *http.Request) { } content := postRecord.Text + if content == "" { + content = "post contained no text" + } if len(content) > 75 { content = fmt.Sprintf("%s...", content[:75]) } diff --git a/dm_handler.go b/dm_handler.go index 4570702..07db58b 100644 --- a/dm_handler.go +++ b/dm_handler.go @@ -232,6 +232,9 @@ func (d *DmService) handleMessage(msg Message) { func (d *DmService) handleCreateBookmark(msg Message) error { content := msg.Embed.Record.Value.Text + if content == "" { + content = "post contained no text" + } if len(content) > 75 { content = fmt.Sprintf("%s...", content[:75]) } diff --git a/frontend/base_templ.go b/frontend/base_templ.go index 5506ebb..e72c29e 100644 --- a/frontend/base_templ.go +++ b/frontend/base_templ.go @@ -29,7 +29,7 @@ func Base() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "BSFeeder") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "Bsky-bookmark") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }