added new information to a Feed for distinguish User feed from Application Feed
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@62285 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
465a6ec75d
commit
394971d6bf
|
@ -117,12 +117,15 @@ public class ApplicationNewsManager extends SocialPortalBridge implements NewsMa
|
|||
|
||||
private Feed buildFeed(String description, String uri, String previewTitle, String previewDescription, String previewThumbnailUrl) {
|
||||
String descToAdd = escapeHtml(description);
|
||||
|
||||
// String scope = getScopeByOrganizationId(""+aslSession.getGroupId());
|
||||
String scope = "/gcube/devsec/devVRE";
|
||||
Feed toReturn = new Feed(
|
||||
UUID.randomUUID().toString(),
|
||||
FeedType.PUBLISH,
|
||||
application.getKey(),
|
||||
new Date(),
|
||||
getScopeByOrganizationId(""+aslSession.getGroupId()),
|
||||
scope,
|
||||
uri,
|
||||
previewThumbnailUrl,
|
||||
descToAdd,
|
||||
|
@ -132,7 +135,8 @@ public class ApplicationNewsManager extends SocialPortalBridge implements NewsMa
|
|||
application.getImageUrl(),
|
||||
previewTitle,
|
||||
previewDescription,
|
||||
"");
|
||||
"",
|
||||
true);
|
||||
return toReturn;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue