diff --git a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java index 8b30f0126..a0cef5d09 100755 --- a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java +++ b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateChatroomAction.java @@ -48,10 +48,6 @@ public boolean action(Request request, Response response) { inputCreateChatroom.setChatroomId(messagesStore.getShortUUID()); } - if (inputCreateChatroom.getPortrait() == null || inputCreateChatroom.getPortrait().length() == 0) { - inputCreateChatroom.setPortrait("https://avatars.io/gravatar/" + inputCreateChatroom.getChatroomId()); - } - WFCMessage.ChatroomInfo info = inputCreateChatroom.toChatroomInfo(); messagesStore.createChatroom(inputCreateChatroom.getChatroomId(), info); setResponseContent(RestResult.ok(new OutputCreateChatroom(inputCreateChatroom.getChatroomId())), response); diff --git a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java index 2c1644d52..89a303ab6 100755 --- a/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java +++ b/broker/src/main/java/com/xiaoleilu/loServer/action/admin/CreateRobotAction.java @@ -49,10 +49,6 @@ public boolean action(Request request, Response response) { inputCreateRobot.setUserId(messagesStore.getShortUUID()); } - if (inputCreateRobot.getPortrait() == null || inputCreateRobot.getPortrait().length() == 0) { - inputCreateRobot.setPortrait("https://avatars.io/gravatar/" + inputCreateRobot.getUserId()); - } - WFCMessage.User newUser = inputCreateRobot.toUser(); try { messagesStore.addUserInfo(newUser);