Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14000274
D11635.id28001.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11635.id28001.diff
View Options
diff --git a/src/applications/differential/storage/DifferentialTransaction.php b/src/applications/differential/storage/DifferentialTransaction.php
--- a/src/applications/differential/storage/DifferentialTransaction.php
+++ b/src/applications/differential/storage/DifferentialTransaction.php
@@ -380,18 +380,31 @@
$this->getMetadataValue('commitPHID'));
$committer_phid = $this->getMetadataValue('committerPHID');
$author_phid = $this->getMetadataValue('authorPHID');
+
if ($this->getHandleIfExists($committer_phid)) {
$committer_name = $this->renderHandleLink($committer_phid);
} else {
$committer_name = $this->getMetadataValue('committerName');
}
+
if ($this->getHandleIfExists($author_phid)) {
$author_name = $this->renderHandleLink($author_phid);
} else {
$author_name = $this->getMetadataValue('authorName');
}
- if ($committer_name && ($committer_name != $author_name)) {
+ // Check if the committer and author are the same. They're the
+ // same if both resolved and are the same user, or if neither
+ // resolved and the text is identical.
+ if ($committer_phid && $author_phid) {
+ $same_author = ($committer_phid == $author_phid);
+ } else if (!$committer_phid && !$author_phid) {
+ $same_author = ($committer_name == $author_name);
+ } else {
+ $same_author = false;
+ }
+
+ if ($committer_name && !$same_author) {
return pht(
'%s closed %s by committing %s (authored by %s).',
$author_link,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 25, 8:40 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717541
Default Alt Text
D11635.id28001.diff (1 KB)
Attached To
Mode
D11635: Probably fix excessive "(authored by X)" attributions
Attached
Detach File
Event Timeline
Log In to Comment