Page MenuHomePhabricator

D11318.id.diff
No OneTemporary

D11318.id.diff

diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -946,6 +946,26 @@
rawThreadInfo: RawThreadInfo,
viewerID: ?string,
userInfos: UserInfos,
+): ThreadInfo {
+ const currentUser = getMinimallyEncodedCurrentUser(
+ rawThreadInfo,
+ null,
+ viewerID,
+ userInfos,
+ );
+ return baseThreadInfoFromRawThreadInfo(
+ rawThreadInfo,
+ viewerID,
+ userInfos,
+ currentUser,
+ );
+}
+
+function baseThreadInfoFromRawThreadInfo(
+ rawThreadInfo: RawThreadInfo,
+ viewerID: ?string,
+ userInfos: UserInfos,
+ currentUser: ThreadCurrentUserInfo,
): ThreadInfo {
let threadInfo: ThreadInfo = {
minimallyEncoded: true,
@@ -961,12 +981,7 @@
community: rawThreadInfo.community,
members: getRelativeMemberInfos(rawThreadInfo, viewerID, userInfos),
roles: rawThreadInfo.roles,
- currentUser: getMinimallyEncodedCurrentUser(
- rawThreadInfo,
- null,
- viewerID,
- userInfos,
- ),
+ currentUser,
repliesCount: rawThreadInfo.repliesCount,
};

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 7:33 AM (7 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701928
Default Alt Text
D11318.id.diff (1 KB)

Event Timeline