mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +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:
parent
1163598acd
commit
3688ac7479
2 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue