Skip to content

Commit

Permalink
🐛 修复清风明月在关闭显示位置的情况下仍然显示位置的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Oct 9, 2024
1 parent 024a0fe commit 1d62796
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ public void organizeBreezemoons(final String currentUserId, final List<JSONObjec

final String authorId = bm.optString(Breezemoon.BREEZEMOON_AUTHOR_ID);
final JSONObject author = userRepository.get(authorId);
try {
if (author.optInt(UserExt.USER_GEO_STATUS) == UserExt.USER_GEO_STATUS_C_PRIVATE) {
bm.put(Breezemoon.BREEZEMOON_CITY, "");
}
} catch (Exception ignored) {
}
if (UserExt.USER_XXX_STATUS_C_DISABLED == author.optInt(UserExt.USER_BREEZEMOON_STATUS)
&& !StringUtils.equals(currentUserId, authorId) && !"admin".equals(currentUserId)) {
iterator.remove();
Expand Down

0 comments on commit 1d62796

Please sign in to comment.