Page MenuHomePhabricator

D6628.diff
No OneTemporary

D6628.diff

diff --git a/lib/utils/entity-text.js b/lib/utils/entity-text.js
--- a/lib/utils/entity-text.js
+++ b/lib/utils/entity-text.js
@@ -228,6 +228,9 @@
if (!params?.ignoreViewer) {
userEntities = userEntities.filter(innerEntity => !innerEntity.isViewer);
}
+ if (userEntities.length === 0) {
+ return 'just you';
+ }
const pluralized = pluralizeEntityText(
userEntities.map(innerEntity => [innerEntity]),
);

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 3:31 AM (18 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2684963
Default Alt Text
D6628.diff (449 B)

Event Timeline