the avatar regexp should match the meme one. keep together.

This commit is contained in:
Ted Unangst 2019-11-26 13:48:39 -05:00
parent 12f7cf6ec3
commit 02433181f4
2 changed files with 1 additions and 2 deletions

1
fun.go
View File

@ -341,6 +341,7 @@ func herdofemus(noise string) []Emu {
} }
var re_memes = regexp.MustCompile("meme: ?([^\n]+)") var re_memes = regexp.MustCompile("meme: ?([^\n]+)")
var re_avatar = regexp.MustCompile("avatar: ?([^\n]+)")
func memetize(honk *Honk) { func memetize(honk *Honk) {
repl := func(x string) string { repl := func(x string) string {

2
web.go
View File

@ -1102,8 +1102,6 @@ func honkpage(w http.ResponseWriter, u *login.UserInfo, honks []*Honk, templinfo
} }
} }
var re_avatar = regexp.MustCompile("avatar: ?([[:alnum:]_.-]+)")
func saveuser(w http.ResponseWriter, r *http.Request) { func saveuser(w http.ResponseWriter, r *http.Request) {
whatabout := r.FormValue("whatabout") whatabout := r.FormValue("whatabout")
u := login.GetUserInfo(r) u := login.GetUserInfo(r)