diff options
author | Vitaly Takmazov | 2020-06-03 17:32:55 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-06-03 17:32:55 +0300 |
commit | b0bdce22447ff815512ae7612dd4ab4a5d9a409a (patch) | |
tree | 9c33f07584697130a316c6db404844207494a832 /src/main/java/com/juick/www/ad/SapeService.java | |
parent | cafe4644cf82267397c21433c0c8965ff90c1073 (diff) |
sape: switch to xml output
Diffstat (limited to 'src/main/java/com/juick/www/ad/SapeService.java')
-rw-r--r-- | src/main/java/com/juick/www/ad/SapeService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/www/ad/SapeService.java b/src/main/java/com/juick/www/ad/SapeService.java index 4ef4a213..3c35f320 100644 --- a/src/main/java/com/juick/www/ad/SapeService.java +++ b/src/main/java/com/juick/www/ad/SapeService.java @@ -60,8 +60,8 @@ public class SapeService { && visitor.isAnonymous(); model.addAttribute("showAdv", showAdv); if (showAdv) { - String links = sape.getPageLinks(requestURI, sapeCookie).render(); - model.addAttribute("links", links); + sape.getPageLinks(requestURI, sapeCookie) + .ifPresent(sapePageLinks -> model.addAttribute("links", sapePageLinks.render())); } } } |