From 659d6dcea375dee21eba034e9a7e57854502fcf2 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Fri, 19 Nov 2021 22:17:15 +0100 Subject: [PATCH] Support bridgy --- dbmigrations/00024.sql | 1 + templates/mentions.gohtml | 4 +-- templates/webmentionadmin.gohtml | 1 + testdata/bridgy.html | 46 ++++++++++++++++++++++++++++++++ webmention.go | 16 ++++++++--- webmentionVerification.go | 28 ++++++++++++++++--- webmentionVerification_test.go | 44 ++++++++++++++++++++++++++++++ 7 files changed, 131 insertions(+), 9 deletions(-) create mode 100644 dbmigrations/00024.sql create mode 100644 testdata/bridgy.html diff --git a/dbmigrations/00024.sql b/dbmigrations/00024.sql new file mode 100644 index 0000000..2821045 --- /dev/null +++ b/dbmigrations/00024.sql @@ -0,0 +1 @@ +alter table webmentions add url text not null default ""; \ No newline at end of file diff --git a/templates/mentions.gohtml b/templates/mentions.gohtml index 8bdc3bd..75a469b 100644 --- a/templates/mentions.gohtml +++ b/templates/mentions.gohtml @@ -3,11 +3,11 @@