Page MenuHomePhabricator

D11317.id38044.diff
No OneTemporary

D11317.id38044.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
Tue, Nov 26, 8:34 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2584039
Default Alt Text
D11317.id38044.diff (1 KB)

Event Timeline