@@ -290,25 +290,22 @@ define(function (require, exports, module) {
290290 context . disabled = ( entry . installInfo && entry . installInfo . status === ExtensionManager . DISABLED ) ;
291291 context . hasVersionInfo = ! ! info . versions ;
292292
293- let isVerified = false ;
294- if ( context . ownershipVerifiedByGitHub ) {
295- context . verified = StringUtils . format ( Strings . EXTENSION_VERIFIED_PUBLISHER ,
296- context . ownershipVerifiedByGitHub [ 0 ] . replace ( "https://" , "" ) ) ;
297- context . verifiedURL = context . ownershipVerifiedByGitHub [ 0 ] ;
298- isVerified = true ;
299- }
300-
301- if ( context . gihubStars ) {
302- context . githubStarCount = context . gihubStars ;
303- }
304-
305293 if ( entry . registryInfo ) {
306294 var latestVerCompatInfo = ExtensionManager . getCompatibilityInfo ( entry . registryInfo , brackets . metadata . apiVersion ) ;
307295 context . isCompatible = latestVerCompatInfo . isCompatible ;
308296 context . requiresNewer = latestVerCompatInfo . requiresNewer ;
309297 context . isCompatibleLatest = latestVerCompatInfo . isLatestVersion ;
310- entry . registryInfo . isVerified = isVerified ? 1 : 0 ;
311- entry . registryInfo . githubStarCount = context . githubStarCount ;
298+ if ( entry . registryInfo . ownerRepo ) {
299+ context . githubStarCount = entry . registryInfo . gihubStars || "0" ;
300+ context . ownerRepo = entry . registryInfo . ownerRepo ;
301+ }
302+ entry . registryInfo . isVerified = 0 ;
303+ if ( entry . registryInfo . ownershipVerifiedByGitHub ) {
304+ context . verified = StringUtils . format ( Strings . EXTENSION_VERIFIED_PUBLISHER ,
305+ entry . registryInfo . ownershipVerifiedByGitHub [ 0 ] . replace ( "https://" , "" ) ) ;
306+ context . verifiedURL = entry . registryInfo . ownershipVerifiedByGitHub [ 0 ] ;
307+ entry . registryInfo . isVerified = 1 ;
308+ }
312309 if ( ! context . isCompatibleLatest ) {
313310 var installWarningBase = context . requiresNewer ? Strings . EXTENSION_LATEST_INCOMPATIBLE_NEWER : Strings . EXTENSION_LATEST_INCOMPATIBLE_OLDER ;
314311 context . installWarning = StringUtils . format ( installWarningBase , entry . registryInfo . versions [ entry . registryInfo . versions . length - 1 ] . version , latestVerCompatInfo . compatibleVersion ) ;
0 commit comments