Fixed social compatibility

This commit is contained in:
Luca Frosini 2022-10-21 11:49:05 +02:00
parent 55798dca6f
commit 2d6e853e6f
1 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import org.gcube.common.authorization.utils.manager.SecretManagerProvider;
import org.gcube.gcat.api.configuration.CatalogueConfiguration;
import org.gcube.gcat.configuration.CatalogueConfigurationFactory;
import org.gcube.gcat.persistence.ckan.CKANUserCache;
import org.gcube.portal.databook.shared.Feed;
import org.gcube.portal.databook.shared.Post;
import org.gcube.social_networking.social_networking_client_library.PostClient;
import org.gcube.social_networking.socialnetworking.model.beans.PostInputBean;
import org.slf4j.Logger;
@ -150,7 +150,9 @@ public class SocialPost extends Thread {
PostInputBean postInputBean = new PostInputBean();
postInputBean.setEnablenotification(notifyUsers);
postInputBean.setText(message);
Feed feed = postClient.writeApplicationPost(postInputBean);
Post post = postClient.writeApplicationPost(postInputBean);
logger.trace("Sent post {}", post);
} catch(Exception e) {
logger.error("Unable to send Social Post", e);