Skip to content

Commit

Permalink
I'm stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Oct 19, 2023
1 parent 01a7a82 commit ce0c046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/smithereen/controllers/WallController.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ public Post createWallPost(@NotNull User author, int authorAccountID, @NotNull A
throw new BadRequestException("This actor doesn't support wall posts");

Post parent=inReplyToID!=0 ? getPostOrThrow(inReplyToID) : null;
context.getPrivacyController().enforcePostPrivacy(author, parent);
if(parent!=null)
context.getPrivacyController().enforcePostPrivacy(author, parent);

final ArrayList<User> mentionedUsers=new ArrayList<>();
String text=preparePostText(textSource, mentionedUsers, parent);
Expand Down

0 comments on commit ce0c046

Please sign in to comment.