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 @@ -1409,16 +1409,16 @@ } function getCommunity( - parentThreadInfo: + threadInfo: | ?ServerThreadInfo | LegacyRawThreadInfo | RawThreadInfo | ThreadInfo, ): ?string { - if (!parentThreadInfo) { + if (!threadInfo) { return null; } - const { id, community, type } = parentThreadInfo; + const { id, community, type } = threadInfo; if (community !== null && community !== undefined) { return community; }