diff --git a/appview/strings/strings.go b/appview/strings/strings.go --- a/appview/strings/strings.go +++ b/appview/strings/strings.go @@ -407,6 +407,22 @@ fail("You cannot delete this string", fmt.Errorf("unauthorized deletion, %s != %s", user.Active.Did, id.DID.String())) return } + client, err := s.OAuth.AuthorizedClient(r) + if err != nil { + fail("Failed to authorize client.", err) + return + } + + _, err = comatproto.RepoDeleteRecord(r.Context(), client, &comatproto.RepoDeleteRecord_Input{ + Collection: tangled.StringNSID, + Repo: user.Active.Did, + Rkey: rkey, + }) + if err != nil { + fail("Failed to delete string record from PDS.", err) + return + } + if err := db.DeleteString( s.Db, orm.FilterEq("did", user.Active.Did),