Skip to content

Commit

Permalink
Correctly map comments from anonymous users (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
violine1101 authored Oct 10, 2024
1 parent 2943388 commit 5e5e1f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/io/github/mojira/arisa/Executor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private fun getSearchResultsFromJira(
config
)
} catch (exception: Exception) {
log.error("Error mapping bug report ${it.key}:" + exception.message + "\n" + exception.stackTrace)
log.error("Error mapping bug report ${it.key}", exception)
null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fun JiraComment.toDomain(
return Comment(
id,
body,
author.toDomain(jiraClient, config),
author?.toDomain(jiraClient, config),
updateAuthor?.toDomain(jiraClient, config),
{ getGroups(jiraClient, author.name).fold({ null }, { it }) },
{ if (updateAuthor == null) emptyList() else getGroups(jiraClient, updateAuthor.name).fold({ null }, { it }) },
Expand Down

0 comments on commit 5e5e1f8

Please sign in to comment.