diff --git a/src/applications/differential/editor/comment/DifferentialCommentEditor.php b/src/applications/differential/editor/comment/DifferentialCommentEditor.php index 51281885e4..e897f61fb0 100644 --- a/src/applications/differential/editor/comment/DifferentialCommentEditor.php +++ b/src/applications/differential/editor/comment/DifferentialCommentEditor.php @@ -318,19 +318,17 @@ class DifferentialCommentEditor { ->setChangedByCommit($this->getChangedByCommit()) ->send(); -/* - - TODO - - $event = array( - 'revision_id' => $revision->getID(), - 'fbid' => $revision->getFBID(), - 'feedback_id' => $feedback->getID(), - 'action' => $feedback->getAction(), - 'actor' => $this->actorPHID, + $event_data = array( + 'revision_id' => $revision->getID(), + 'revision_phid' => $revision->getPHID(), + 'revision_name' => $revision->getTitle(), + 'revision_author_phid' => $revision->getAuthorPHID(), + 'action' => $comment->getAction(), + 'feedback_content' => $comment->getContent(), + 'actor_phid' => $this->actorPHID, ); - id(new ToolsTimelineEvent('difx', fb_json_encode($event)))->record(); -*/ + id(new PhabricatorTimelineEvent('difx', $event_data)) + ->recordEvent(); return $comment; } diff --git a/src/applications/differential/editor/comment/__init__.php b/src/applications/differential/editor/comment/__init__.php index 2412349c94..b18b5491bb 100644 --- a/src/applications/differential/editor/comment/__init__.php +++ b/src/applications/differential/editor/comment/__init__.php @@ -14,6 +14,7 @@ phutil_require_module('phabricator', 'applications/differential/storage/changese phutil_require_module('phabricator', 'applications/differential/storage/comment'); phutil_require_module('phabricator', 'applications/differential/storage/inlinecomment'); phutil_require_module('phabricator', 'applications/phid/handle/data'); +phutil_require_module('phabricator', 'infrastructure/daemon/timeline/storage/event'); phutil_require_module('phutil', 'utils');