return session.getPrincipal().getName().equals(actorUsername);
}
private Map<String, Serializable> getLikeStatus(Serializable id) {
String activityObject = ActivityHelper.createActivityObject(id);
LikeStatus likeStatus = likeService.getLikeStatus(
session.getPrincipal().getName(), activityObject);
return likeStatus.toMap();
}