Revised text for favorite removal
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@132889 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6c813d5e0b
commit
1060ed3dac
|
@ -196,7 +196,7 @@ public class SocialMailingUtil {
|
||||||
protected static String getSubjectByNotificationType(Notification notification2Save, String vreName, String userFirstName, String ...optionalParams) {
|
protected static String getSubjectByNotificationType(Notification notification2Save, String vreName, String userFirstName, String ...optionalParams) {
|
||||||
switch (notification2Save.getType()) {
|
switch (notification2Save.getType()) {
|
||||||
case LIKE:
|
case LIKE:
|
||||||
return notification2Save.getSenderFullName()+" favorited your post in " + (vreName == null? "" : vreName);
|
return notification2Save.getSenderFullName()+" liked your post in " + (vreName == null? "" : vreName);
|
||||||
case COMMENT:
|
case COMMENT:
|
||||||
return notification2Save.getSenderFullName()+" commented on the post in " + (vreName == null? "" : vreName);
|
return notification2Save.getSenderFullName()+" commented on the post in " + (vreName == null? "" : vreName);
|
||||||
case MESSAGE:
|
case MESSAGE:
|
||||||
|
@ -228,7 +228,7 @@ public class SocialMailingUtil {
|
||||||
case MENTION:
|
case MENTION:
|
||||||
return notification2Save.getSenderFullName() + " mentioned you in " + (vreName == null? "" : vreName);
|
return notification2Save.getSenderFullName() + " mentioned you in " + (vreName == null? "" : vreName);
|
||||||
case POST_ALERT:
|
case POST_ALERT:
|
||||||
String toReturn = notification2Save.getSenderFullName() + " shared a news on " + vreName;
|
String toReturn = notification2Save.getSenderFullName() + " posted on " + vreName;
|
||||||
if (optionalParams != null) { //in this case optionalParams are the hashtags
|
if (optionalParams != null) { //in this case optionalParams are the hashtags
|
||||||
for (int i = 0; i < optionalParams.length; i++)
|
for (int i = 0; i < optionalParams.length; i++)
|
||||||
toReturn += " " + optionalParams[i];
|
toReturn += " " + optionalParams[i];
|
||||||
|
|
Loading…
Reference in New Issue