Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3501182
D6628.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
449 B
Referenced Files
None
Subscribers
None
D6628.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6628: [lib] Show "just you" for thread title if there are no members besides you
Attached
Detach File
Event Timeline
Log In to Comment