id === $GLOBALS["currentUser"]?->id && $user->hasPermission(UserPermissions::EDIT_OWN_USER)) || $GLOBALS["currentUser"]?->hasPermission(UserPermissions::EDIT_OTHER_USER); $isOwnProfile = $user->id === $GLOBALS["currentUser"]?->id; $sUserPossessive = ""; if ($isOwnProfile) $sUserPossessive = "Your posts"; else $sUserPossessive = "%display_name%'s posts"; $dateJoined = DateTime::createFromImmutable($user->created); $dateJoined->setTime(0, 0, 0, 0); $emailPending = $isOwnProfile && $user->pendingEmail !== null; ?>