1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-02 08:54:26 +00:00
This commit is contained in:
Jan-Lukas Else 2021-11-10 19:39:54 +01:00
parent 232aed2398
commit dd54d20a1c

View File

@ -123,7 +123,7 @@ func (a *goBlog) verifyMention(m *mention) error {
}
// Update webmention
_, err = a.db.exec(
"update webmentions set url = @newsource, status = @status, title = @title, content = @content, author = @author where lowerx(source) = lowerx(@source) and lowerx(target) = lowerx(@target)",
"update webmentions set source = @newsource, status = @status, title = @title, content = @content, author = @author where lowerx(source) = lowerx(@source) and lowerx(target) = lowerx(@target)",
sql.Named("newsource", defaultIfEmpty(m.NewSource, m.Source)),
sql.Named("status", newStatus),
sql.Named("title", m.Title),