1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Fix TokenGiven stories for Asana

Summary: Ref T6201. This isn't quite perfect but should be good enough. At some point far in the future I plan to revamp feed rendering a bit. This should possibly become a real ApplicationTransaction story eventually, too.

Test Plan: {F211777}

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T6201

Differential Revision: https://secure.phabricator.com/D10625
This commit is contained in:
epriestley 2014-10-02 09:20:27 -07:00
parent fda0b086b5
commit 7018909447

View file

@ -53,4 +53,13 @@ final class PhabricatorTokenGivenFeedStory
return $title;
}
public function renderAsTextForDoorkeeper(
DoorkeeperFeedStoryPublisher $publisher) {
// TODO: This is slightly wrong, as it does not respect implied context
// on the publisher, so it will always say "awarded D123 a token" when it
// should sometimes say "awarded this revision a token".
return $this->renderText();
}
}