@@ -41,7 +41,7 @@ public bool AddLevel(GameLevel level)
4141 level . PublishDate = timestamp ;
4242 level . UpdateDate = timestamp ;
4343
44- this . ApplyLevelMetadataFromDetails ( level ) ;
44+ this . ApplyLevelMetadataFromAttributes ( level ) ;
4545 this . GameLevels . Add ( level ) ;
4646
4747 this . SaveChanges ( ) ;
@@ -199,7 +199,7 @@ public void UpdateLevelLocations(IEnumerable<ISerializedEditLevelLocation> locat
199199 prop . SetValue ( oldLevel , prop . GetValue ( newLevel ) ) ;
200200 }
201201
202- this . ApplyLevelMetadataFromDetails ( newLevel ) ;
202+ this . ApplyLevelMetadataFromAttributes ( newLevel ) ;
203203 this . CreateRevisionForLevel ( newLevel , author ) ;
204204 this . SaveChanges ( ) ;
205205 return oldLevel ;
@@ -229,7 +229,7 @@ public void UpdateLevelLocations(IEnumerable<ISerializedEditLevelLocation> locat
229229
230230 level . UpdateDate = this . _time . Now ;
231231
232- this . ApplyLevelMetadataFromDetails ( level ) ;
232+ this . ApplyLevelMetadataFromAttributes ( level ) ;
233233 this . CreateRevisionForLevel ( level , updatingUser ) ;
234234 this . SaveChanges ( ) ;
235235 return level ;
@@ -633,7 +633,7 @@ public void UpdateSkillRewardsForLevel(GameLevel level, IEnumerable<GameSkillRew
633633 } ) ;
634634 }
635635
636- private void ApplyLevelMetadataFromDetails ( GameLevel level , bool save = false )
636+ public void ApplyLevelMetadataFromAttributes ( GameLevel level , bool save = false )
637637 {
638638 // Automatically mark level as reupload by keyword matching the title
639639 bool isReUpload = LevelPrefixes . ReuploadKeywords . Any ( keyword => level . Title . Contains ( keyword , StringComparison . OrdinalIgnoreCase ) ) ;
0 commit comments