1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

Fix caching for synthetic inline comments

Test Plan: Looked at diff with several different lint errors, saw correct messages in their inline comments.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3827
This commit is contained in:
vrana 2012-10-29 00:13:00 -07:00
parent 1163598acd
commit 3688ac7479
2 changed files with 3 additions and 2 deletions

View file

@ -126,7 +126,8 @@ final class DifferentialInlineComment
public function getMarkupFieldKey($field) {
return 'DI:'.$this->getID();
// We can't use ID because synthetic comments don't have it.
return 'DI:'.PhabricatorHash::digest($this->getContent());
}
public function newMarkupEngine($field) {

View file

@ -47,7 +47,7 @@ interface PhabricatorMarkupInterface {
* "{$phid}:{$field}"
*
* @param string Field name.
* @return string Cache key.
* @return string Cache key up to 125 characters.
*
* @task markup
*/