diff --git a/CHANGELOG.md b/CHANGELOG.md index 7685e07..26e9ac5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [v2.3.1] - Fixed bug on getting ScopeDescriptor for new scopes. +- Updated version of Social Client dependency (#26508) ## [v2.3.0] diff --git a/pom.xml b/pom.xml index 04b1891..f36325d 100644 --- a/pom.xml +++ b/pom.xml @@ -130,7 +130,7 @@ org.gcube.social-networking social-service-client - [1.0.0, 2.0.0-SNAPSHOT) + [2.0.0-SNAPSHOT, 3.0.0) org.json diff --git a/src/main/java/org/gcube/dataharvest/harvester/SocialInteractionsHarvester.java b/src/main/java/org/gcube/dataharvest/harvester/SocialInteractionsHarvester.java index 5c05199..521468a 100644 --- a/src/main/java/org/gcube/dataharvest/harvester/SocialInteractionsHarvester.java +++ b/src/main/java/org/gcube/dataharvest/harvester/SocialInteractionsHarvester.java @@ -9,7 +9,7 @@ import org.gcube.accounting.accounting.summary.access.model.update.AccountingRec import org.gcube.dataharvest.AccountingDashboardHarvesterPlugin; import org.gcube.dataharvest.datamodel.HarvestedDataKey; import org.gcube.dataharvest.utils.Utils; -import org.gcube.portal.databook.shared.Feed; +import org.gcube.social_networking.socialnetworking.model.shared.Post; import org.gcube.social_networking.social_networking_client_library.PostClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -67,18 +67,18 @@ public class SocialInteractionsHarvester extends BasicHarvester { private void getJson() throws Exception { PostClient postClient = new PostClient(); - List vrePosts = postClient.getPostsVRE(); + List vrePosts = postClient.getPostsVRE(); likes = replies = posts = 0; - for(Feed feed : vrePosts) { + for(Post post : vrePosts) { - long time = feed.getTime().getTime(); + long time = post.getTime().getTime(); if(start.getTime() <= time && time <= end.getTime()) { posts++; - replies += Integer.valueOf(feed.getCommentsNo()); - likes += Integer.valueOf(feed.getLikesNo()); + replies += Integer.valueOf(post.getCommentsNo()); + likes += Integer.valueOf(post.getLikesNo()); } }