mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-21 14:29:15 +00:00
fix: redeclare correct answer author vars
This commit is contained in:
parent
ba55578143
commit
c55b8b6ed5
1 changed files with 2 additions and 2 deletions
|
@ -222,8 +222,8 @@ func ViewQuestion(c *gin.Context) {
|
||||||
|
|
||||||
if questionAuthorDetails.Length() > 0 {
|
if questionAuthorDetails.Length() > 0 {
|
||||||
questionAuthor := questionAuthorDetails.Find("a").First()
|
questionAuthor := questionAuthorDetails.Find("a").First()
|
||||||
newFilteredQuestion.AuthorName = html.EscapeString(questionAuthor.Text())
|
answerAuthorName = html.EscapeString(questionAuthor.Text())
|
||||||
newFilteredQuestion.AuthorURL = html.EscapeString(questionAuthor.AttrOr("href", ""))
|
answerAuthorURL = html.EscapeString(questionAuthor.AttrOr("href", ""))
|
||||||
}
|
}
|
||||||
|
|
||||||
answerTimestamp = html.EscapeString(s.Find("span.relativetime").Text())
|
answerTimestamp = html.EscapeString(s.Find("span.relativetime").Text())
|
||||||
|
|
Loading…
Add table
Reference in a new issue