From 4382d81a4e296b5d7599ca5fde86a7650a5bb8c2 Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Wed, 9 Oct 2024 19:44:21 +0300 Subject: [PATCH] cleanup --- front/print.go | 2 +- test/bookmark_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/front/print.go b/front/print.go index 1a7d2665..463eb89a 100644 --- a/front/print.go +++ b/front/print.go @@ -451,7 +451,7 @@ func (h *Handler) PrintNote(w text.Writer, r *Request, note *ap.Object, author * } else if bookmarked == 0 { w.Link("/users/bookmark/"+strings.TrimPrefix(note.ID, "https://"), "🔖 Bookmark") } else { - w.Link("/users/unbookmark/"+strings.TrimPrefix(note.ID, "https://"), "💣 Unbookmark") + w.Link("/users/unbookmark/"+strings.TrimPrefix(note.ID, "https://"), "🔖 Unbookmark") } } diff --git a/test/bookmark_test.go b/test/bookmark_test.go index 37609d90..11c03a6d 100644 --- a/test/bookmark_test.go +++ b/test/bookmark_test.go @@ -34,7 +34,7 @@ func TestBookmark_HappyFlow(t *testing.T) { view := strings.Split(server.Handle("/users/view/"+say[15:len(say)-2], server.Bob), "\n") assert.Contains(view, fmt.Sprintf("=> /users/bookmark/%s 🔖 Bookmark", say[15:len(say)-2])) - assert.NotContains(view, fmt.Sprintf("=> /users/unbookmark/%s 💣️ Unbookmark", say[15:len(say)-2])) + assert.NotContains(view, fmt.Sprintf("=> /users/unbookmark/%s 🔖 Unbookmark", say[15:len(say)-2])) bookmarks := strings.Split(server.Handle("/users/bookmarks", server.Bob), "\n") assert.Contains(bookmarks, "No posts.") @@ -49,7 +49,7 @@ func TestBookmark_HappyFlow(t *testing.T) { view = strings.Split(server.Handle("/users/view/"+say[15:len(say)-2], server.Bob), "\n") assert.NotContains(view, fmt.Sprintf("=> /users/bookmark/%s 🔖 Bookmark", say[15:len(say)-2])) - assert.Contains(view, fmt.Sprintf("=> /users/unbookmark/%s 💣️ Unbookmark", say[15:len(say)-2])) + assert.Contains(view, fmt.Sprintf("=> /users/unbookmark/%s 🔖 Unbookmark", say[15:len(say)-2])) unbookmark := server.Handle("/users/unbookmark/"+say[15:len(say)-2], server.Bob) assert.Equal(fmt.Sprintf("30 /users/view/%s\r\n", say[15:len(say)-2]), unbookmark) @@ -60,7 +60,7 @@ func TestBookmark_HappyFlow(t *testing.T) { view = strings.Split(server.Handle("/users/view/"+say[15:len(say)-2], server.Bob), "\n") assert.Contains(view, fmt.Sprintf("=> /users/bookmark/%s 🔖 Bookmark", say[15:len(say)-2])) - assert.NotContains(view, fmt.Sprintf("=> /users/unbookmark/%s 💣️ Unbookmark", say[15:len(say)-2])) + assert.NotContains(view, fmt.Sprintf("=> /users/unbookmark/%s 🔖 Unbookmark", say[15:len(say)-2])) } func TestBookmark_Throttling(t *testing.T) {