Fixed social compatibility
This commit is contained in:
parent
55798dca6f
commit
2d6e853e6f
|
@ -10,7 +10,7 @@ import org.gcube.common.authorization.utils.manager.SecretManagerProvider;
|
||||||
import org.gcube.gcat.api.configuration.CatalogueConfiguration;
|
import org.gcube.gcat.api.configuration.CatalogueConfiguration;
|
||||||
import org.gcube.gcat.configuration.CatalogueConfigurationFactory;
|
import org.gcube.gcat.configuration.CatalogueConfigurationFactory;
|
||||||
import org.gcube.gcat.persistence.ckan.CKANUserCache;
|
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.social_networking_client_library.PostClient;
|
||||||
import org.gcube.social_networking.socialnetworking.model.beans.PostInputBean;
|
import org.gcube.social_networking.socialnetworking.model.beans.PostInputBean;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -150,7 +150,9 @@ public class SocialPost extends Thread {
|
||||||
PostInputBean postInputBean = new PostInputBean();
|
PostInputBean postInputBean = new PostInputBean();
|
||||||
postInputBean.setEnablenotification(notifyUsers);
|
postInputBean.setEnablenotification(notifyUsers);
|
||||||
postInputBean.setText(message);
|
postInputBean.setText(message);
|
||||||
Feed feed = postClient.writeApplicationPost(postInputBean);
|
Post post = postClient.writeApplicationPost(postInputBean);
|
||||||
|
logger.trace("Sent post {}", post);
|
||||||
|
|
||||||
|
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
logger.error("Unable to send Social Post", e);
|
logger.error("Unable to send Social Post", e);
|
||||||
|
|
Loading…
Reference in New Issue