fixed user referral when post deleted problem
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@94128 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3bd8077e11
commit
3e84896156
|
@ -336,7 +336,11 @@ public class NewsFeedPanel extends Composite {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(EnhancedFeed result) {
|
public void onSuccess(EnhancedFeed result) {
|
||||||
if (result.getFeed().getType() == FeedType.DISABLED) {
|
if (result.getFeed().getType() == FeedType.DISABLED) {
|
||||||
String usrLink = "<a class=\"link\" href=\""+GCubeSocialNetworking.USER_PROFILE_LINK+"?uid="+result.getFeed().getEntityId() + "\">"+result.getFeed().getFullName() +"</a> ";
|
|
||||||
|
String usrLink = "<a class=\"link\" href=\""+GCubeSocialNetworking.USER_PROFILE_LINK+"?"+
|
||||||
|
Encoder.encode(GCubeSocialNetworking.USER_PROFILE_OID)+"="+
|
||||||
|
Encoder.encode(result.getFeed().getEntityId())+"\">"+result.getFeed().getFullName()+
|
||||||
|
"</a> ";
|
||||||
newsPanel.add(new HTML("<div class=\"nofeed-message\"><div style=\"padding-top: 90px;\">" +
|
newsPanel.add(new HTML("<div class=\"nofeed-message\"><div style=\"padding-top: 90px;\">" +
|
||||||
"We're sorry, "+ usrLink +" removed the post in the meantime!</div></div>"));
|
"We're sorry, "+ usrLink +" removed the post in the meantime!</div></div>"));
|
||||||
} else{
|
} else{
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<inherits name='com.google.gwt.user.User' />
|
<inherits name='com.google.gwt.user.User' />
|
||||||
|
|
||||||
<!-- To Comment out -->
|
<!-- To Comment out -->
|
||||||
<set-property name="user.agent" value="safari,gecko1_8,ie9" />
|
<!-- <set-property name="user.agent" value="safari,gecko1_8,ie9" /> -->
|
||||||
|
|
||||||
<!-- Other module inherits -->
|
<!-- Other module inherits -->
|
||||||
<inherits name="net.eliasbalasis.tibcopagebus4gwt.tibcopagebus4gwt" />
|
<inherits name="net.eliasbalasis.tibcopagebus4gwt.tibcopagebus4gwt" />
|
||||||
|
|
Loading…
Reference in New Issue