Page MenuHomePhabricator

D11317.diff
No OneTemporary

D11317.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
@@ -963,6 +963,7 @@
roles: rawThreadInfo.roles,
currentUser: getMinimallyEncodedCurrentUser(
rawThreadInfo,
+ null,
viewerID,
userInfos,
),
@@ -998,10 +999,18 @@
function getMinimallyEncodedCurrentUser(
threadInfo: RawThreadInfo | ThreadInfo,
+ communityThreadInfo: ?(RawThreadInfo | ThreadInfo),
viewerID: ?string,
userInfos: UserInfos,
): ThreadCurrentUserInfo {
- if (!clientThreadFrozenDueToBlock(threadInfo, viewerID, userInfos)) {
+ if (
+ !clientThreadFrozenDueToBlock(
+ threadInfo,
+ communityThreadInfo,
+ viewerID,
+ userInfos,
+ )
+ ) {
return threadInfo.currentUser;
}
const decodedPermissions = threadPermissionsFromBitmaskHex(
@@ -1060,6 +1069,7 @@
function clientThreadFrozenDueToBlock(
threadInfo: RawThreadInfo | ThreadInfo,
+ communityThreadInfo: ?(RawThreadInfo | ThreadInfo),
viewerID: ?string,
userInfos: UserInfos,
): boolean {
@@ -1340,6 +1350,7 @@
...updatedThread,
currentUser: getMinimallyEncodedCurrentUser(
updatedThread,
+ null,
viewerID,
userInfos,
),

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 7:32 AM (8 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701930
Default Alt Text
D11317.diff (1 KB)

Event Timeline