Skip to content

Commit 6ada597

Browse files
author
Debian
committed
formatting
1 parent 19b5308 commit 6ada597

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

disqus/rest-api/class-disqus-rest-api.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -783,14 +783,14 @@ private function comment_data_from_post( $post ) {
783783
// if the user has not set the permission for their API application.
784784
$author_email = null;
785785
if ( $author ) {
786-
if ( isset( $author['email'] ) ) {
787-
$author_email = $author['email'];
788-
} elseif ( isset( $author['isAnonymous'] ) && $author['isAnonymous'] ) {
789-
$author_email = 'anonymized-' . md5( $author['name'] ) . '@disqus.com';
790-
} elseif ( isset( $author['id'] ) ) {
791-
$author_email = 'user-' . $author['id'] . '@disqus.com';
792-
}
793-
} else {
786+
if ( isset( $author['email'] ) ) {
787+
$author_email = $author['email'];
788+
} elseif ( isset( $author['isAnonymous'] ) && $author['isAnonymous'] ) {
789+
$author_email = 'anonymized-' . md5( $author['name'] ) . '@disqus.com';
790+
} elseif ( isset( $author['id'] ) ) {
791+
$author_email = 'user-' . $author['id'] . '@disqus.com';
792+
}
793+
} else {
794794
$author_email = md5( 'no_author_data' ) . '@disqus.com';
795795
}
796796

0 commit comments

Comments
 (0)