summaryrefslogtreecommitdiff
path: root/lib/bitbucket_server/representation/comment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket_server/representation/comment.rb')
-rw-r--r--lib/bitbucket_server/representation/comment.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bitbucket_server/representation/comment.rb b/lib/bitbucket_server/representation/comment.rb
index 99b97a3b181..7e55c446e76 100644
--- a/lib/bitbucket_server/representation/comment.rb
+++ b/lib/bitbucket_server/representation/comment.rb
@@ -38,7 +38,9 @@ module BitbucketServer
end
def author_username
- author['displayName']
+ author['username'] ||
+ author['slug'] ||
+ author['displayName']
end
def author_email