diff --git a/app/webmention/recv/receive.go b/app/webmention/recv/receive.go
index 63b4eae..27a82c4 100644
--- a/app/webmention/recv/receive.go
+++ b/app/webmention/recv/receive.go
@@ -21,6 +21,8 @@ type Receiver struct {
}
var (
+ titleRegexp = regexp.MustCompile(`
(.*?)<\/title>`)
+
errPicUnableToDownload = errors.New("Unable to download author picture")
errPicNoRealImage = errors.New("Downloaded author picture is not a real image")
errPicUnableToSave = errors.New("Unable to save downloaded author picture")
@@ -86,10 +88,6 @@ func (recv *Receiver) parseBodyAsIndiewebSite(hEntry *microformats.Microformat,
}
}
-var (
- titleRegexp = regexp.MustCompile(`(.*?)<\/title>`)
-)
-
func (recv *Receiver) parseBodyAsNonIndiewebSite(body string, wm mf.Mention) *mf.IndiewebData {
title := nonIndiewebTitle(body, wm)
return &mf.IndiewebData{