}
private void loadElements(SoneBuilder soneBuilder, String soneId) {
+ long soneTime = configurationLoader.getLocalSoneTime(soneId);
+ if (soneTime == -1) {
+ return;
+ }
+ soneBuilder.lastUpdated(soneTime);
+
ConfigurationSoneParser configurationSoneParser = new ConfigurationSoneParser(configuration, soneId);
try {
}
private void loadSone(LocalSone sone) {
- long soneTime = configurationLoader.getLocalSoneTime(sone.getId());
- if (soneTime == -1) {
- return;
- }
-
/* load profile. */
ConfigurationSoneParser configurationSoneParser = new ConfigurationSoneParser(configuration, sone.getId());
Profile profile = configurationSoneParser.parseProfile(sone);
/* if we’re still here, Sone was loaded successfully. */
lock.writeLock().lock();
try {
- updateSoneTime(sone, soneTime);
+ updateSoneTime(sone, sone.getTime());
sone.setProfile(profile);
sone.setLikePostIds(likedPostIds);
sone.setLikeReplyIds(likedReplyIds);