Page MenuHomePhabricator

D19635.diff
No OneTemporary

D19635.diff

diff --git a/src/infrastructure/diff/PhabricatorInlineCommentController.php b/src/infrastructure/diff/PhabricatorInlineCommentController.php
--- a/src/infrastructure/diff/PhabricatorInlineCommentController.php
+++ b/src/infrastructure/diff/PhabricatorInlineCommentController.php
@@ -231,6 +231,15 @@
$inline->setReplyToCommentPHID($this->getReplyToCommentPHID());
}
+ // If you own this object, mark your own inlines as "Done" by default.
+ $owner_phid = $this->loadObjectOwnerPHID($inline);
+ if ($owner_phid) {
+ if ($viewer->getPHID() == $owner_phid) {
+ $fixed_state = PhabricatorInlineCommentInterface::STATE_DRAFT;
+ $inline->setFixedState($fixed_state);
+ }
+ }
+
$this->saveComment($inline);
return $this->buildRenderedCommentResponse(

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 11, 5:46 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7541469
Default Alt Text
D19635.diff (855 B)

Event Timeline