mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-28 16:09:16 +00:00
add even more integration tests
This commit is contained in:
@@ -128,7 +128,7 @@ public class Entry implements Serializable {
|
||||
entry.setTags(status.getTags().stream().map(FeedEntryTag::getName).toList());
|
||||
|
||||
if (content != null) {
|
||||
entry.setRtl(content.isRTL());
|
||||
entry.setRtl(content.getDirection() == FeedEntryContent.Direction.RTL);
|
||||
entry.setTitle(content.getTitle());
|
||||
entry.setContent(proxyImages ? FeedUtils.proxyImages(content.getContent()) : content.getContent());
|
||||
entry.setAuthor(content.getAuthor());
|
||||
|
||||
@@ -80,7 +80,7 @@ public class AdminREST {
|
||||
roles.add(Role.ADMIN);
|
||||
}
|
||||
try {
|
||||
userService.register(req.getName(), req.getPassword(), req.getEmail(), roles, true);
|
||||
id = userService.register(req.getName(), req.getPassword(), req.getEmail(), roles, true).getId();
|
||||
} catch (Exception e) {
|
||||
return Response.status(Status.CONFLICT).entity(e.getMessage()).build();
|
||||
}
|
||||
@@ -113,7 +113,7 @@ public class AdminREST {
|
||||
}
|
||||
|
||||
}
|
||||
return Response.ok().build();
|
||||
return Response.ok(id).build();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user