Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3503694
D6521.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6521.diff
View Options
diff --git a/lib/shared/messages/unsupported-message-spec.js b/lib/shared/messages/unsupported-message-spec.js
--- a/lib/shared/messages/unsupported-message-spec.js
+++ b/lib/shared/messages/unsupported-message-spec.js
@@ -11,6 +11,7 @@
UnsupportedMessageInfo,
} from '../../types/messages/unsupported';
import type { RelativeUserInfo } from '../../types/user-types';
+import { ET, type EntityText } from '../../utils/entity-text';
import {
robotextToRawString,
robotextForMessageInfo,
@@ -87,11 +88,12 @@
);
},
- robotext(messageInfo: UnsupportedMessageInfo, creator: string): string {
+ robotext(messageInfo: UnsupportedMessageInfo): EntityText {
if (messageInfo.dontPrefixCreator) {
- return messageInfo.robotext;
+ return ET`${messageInfo.robotext}`;
}
- return `${creator} ${messageInfo.robotext}`;
+ const creator = ET.user({ userInfo: messageInfo.creator });
+ return ET`${creator} ${messageInfo.robotext}`;
},
generatesNotifs: async () => pushTypes.NOTIF,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 6:10 AM (18 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2686580
Default Alt Text
D6521.diff (1 KB)
Attached To
Mode
D6521: [lib] Convert Unsupported robotext to use EntityText
Attached
Detach File
Event Timeline
Log In to Comment