Skip to content

Commit

Permalink
feat: Send published article public link in publish news mail notific…
Browse files Browse the repository at this point in the history
…ation message - EXO-73050 - Meeds-io/MIPs#129 (#250)
  • Loading branch information
azayati committed Oct 7, 2024
1 parent 25e3984 commit 64a8dac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ protected MessageInfo makeMessage(NotificationContext ctx) {
templateContext.put("AUTHOR_AVATAR_URL", encoder.encode(authorAvatarUrl));
templateContext.put("CONTEXT", encoder.encode(context));
StringBuilder activityUrl = new StringBuilder();
Space space = spaceService.getSpaceByDisplayName(contentSpaceName);
if (pluginId.equals(PublishNewsNotificationPlugin.ID) && !spaceService.isMember(space, notification.getTo())) {
if (pluginId.equals(PublishNewsNotificationPlugin.ID)) {
String portalName = PortalContainer.getCurrentPortalContainerName();
String portalOwner = CommonsUtils.getCurrentPortalOwner();
String currentDomain = CommonsUtils.getCurrentDomain();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public void shouldInstantiateMailTemplate() {
when(encoder.encode("jean")).thenReturn("jean");
when(encoder.encode("http://localhost:8080/content/images/newsImageDefault.png")).thenReturn("http://localhost:8080/content/images/newsImageDefault.png");
when(encoder.encode("COMMENT MY NEWS")).thenReturn("COMMENT MY NEWS");
when(encoder.encode("http://localhost:8080/portal/intranet/activity?id=39")).thenReturn("http://localhost:8080/portal/intranet/activity?id=39");
when(notification.getValueOwnerParameter("read")).thenReturn("true");
when(notification.getId()).thenReturn("NotifId123");
Date date = new Date();
Expand Down

0 comments on commit 64a8dac

Please sign in to comment.