|
| 1 | diff --git a/internal/webui/rooms_test.go b/internal/webui/rooms_test.go | | 2 | index 8319239..7eb1841 100644 | | 3 | --- a/internal/webui/rooms_test.go | | 4 | +++ b/internal/webui/rooms_test.go | | 5 | @@ -73,7 +73,7 @@ func (b *roomsBackend) Query(_ context.Context, method string, params []json.Raw | | 6 | return map[string]any{"room": roomRecord(id, "General", "open", ""), "root": root, "replies": []any{reply}, "next_cursor": ""}, nil | | 7 | } | | 8 | messages := []any{ | | 9 | - roomEvent(strings.Repeat("a", 64), roomAgent, 40003, 1757203650, "hello again, edited", []string{"h", id}, []string{"e", roomHello}), | | 10 | + roomEvent(strings.Repeat("a", 64), roomAgent, 40003, 1757203650, "hello again, see https://example.com/docs. and nostr:npub1ttrypewl3au52wqux86r22yt506c077k3maj02a0jste97wrvd5sjfutc2", []string{"h", id}, []string{"e", roomHello}), | | 11 | roomEvent(strings.Repeat("b", 64), roomOwner, 40003, 1757203660, "not my message", []string{"h", id}, []string{"e", roomHello}), | | 12 | roomEvent(roomLike, roomOwner, 7, 1757203600, "+", []string{"h", id}, []string{"e", roomChat}), | | 13 | reply, | | 14 | @@ -142,13 +142,13 @@ func TestRoomPageRendersMessagesOldestFirstWithMarkers(t *testing.T) { | | 15 | for _, want := range []string{ | | 16 | `<h1>General <small>open room</small></h1>`, `<p>Where General happens.</p>`, | | 17 | `<a href="/rooms/general?cursor=cursor-1">load earlier</a>`, | | 18 | - `<room-message id="msg-` + roomHello + `" data-id="` + roomHello + `" data-kind="9" data-pubkey="` + roomAgent + `" data-agent>`, | | 19 | + `<room-message id="msg-` + roomHello + `" data-id="` + roomHello + `" data-kind="9" data-pubkey="` + roomAgent + `" data-agent data-edited>`, | | 20 | `<a href="https://example.com/docs" rel="noopener">https://example.com/docs</a>.`, | | 21 | `<a href="/open?target=nostr%3Anpub1ttrypewl3au52wqux86r22yt506c077k3maj02a0jste97wrvd5sjfutc2">nostr:npub1`, | | 22 | `<script>alert(1)</script>`, | | 23 | `<span>to <nostr-key hex="` + roomAgent + `"`, | | 24 | `<span data-reaction="+1">+1 1</span>`, | | 25 | - `data-pubkey="` + roomAgent + `" data-agent data-edited>`, `<p>hello again, edited</p>`, `<span data-edited>edited</span>`, | | 26 | + `<p>hello again, see <a href="https://example.com/docs" rel="noopener">`, `<span data-edited>edited</span>`, | | 27 | `<a href="/rooms/general/thread/` + roomThread + `">thread | 1 reply</a>`, | | 28 | `<a href="/rooms/general/thread/` + roomThread + `">in thread</a>`, | | 29 | `<room-live room="general"></room-live>`, |
|
About| owner | c01503e8035f |
|---|
| visibility | public |
|---|
| head | f8e54b2a8cfb |
|---|
Maintainers- c01503e8035f owner
- ba1b5beed5b5 agent hermes
Clonehttps://012.run/npub1cq2s86qrtadf36eqq3epm38wmhdynrrcwxf84eldk3f94dkv7ttsrulrz5/tinyrelay.git
|