use name= everywhere for twitter og tags and make tests pass.

This commit is contained in:
fiatjaf
2023-11-09 10:39:45 -03:00
parent ab07ca3692
commit 3fce26e0a0
4 changed files with 5 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ func TestNoteWithTextImage(t *testing.T) {
assert.Contains(t, og.Image, "/njump/image/nevent1qqs860kwt3m500hfnve6vxdpagkfqkm6hq03dnn2n7u8dev580kd2uszyztuwzjyxe4x2dwpgken87tna2rdlhpd02va5cvvgrrywpddnr3jydc2w4t", "")
assert.Equal(t, og.TwitterCard, "summary_large_image", "")
assert.Contains(t, og.Text, "Thanks, it's of course a work in progress", "")
assert.Contains(t, og.Text, "seen on", "")
}
func makeRequest(t *testing.T, path string) *OpengraphFields {