Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Oct 28, 2023
1 parent 877f14d commit c204e18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class DeletePersonHandler extends ActivityTypeHandler<ForeignUser, Delete
public void handle(ActivityHandlerContext context, ForeignUser actor, Delete activity, ForeignUser object) throws SQLException{
if(actor.id!=object.id)
throw new BadRequestException("User can only delete themselves");
LOG.debug("Deleting foreign user {}", actor.activityPubID);
context.appContext.getUsersController().deleteForeignUser(actor);
LOG.debug("Successfully deleted foreign user {}", actor.activityPubID);
}
}
2 changes: 1 addition & 1 deletion src/main/resources/templates/common/wall_tabbar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% if tab=="single" %}
<a href="#" class="selected">{{ L('wall_post_title') }}</a>
{% elseif tab=="wall2wall" %}
<a href="#" class="selected">{{ L('wall_X_and_Y', {'name1': owner | firstName, 'name2': otherUser | firstName}) }}</a>
<a href="#" class="selected">{{ L('wall_X_and_Y', {'name1': owner | name('first'), 'name2': otherUser | name('first')}) }}</a>
{% endif %}
<span class="aux"><a href="{{ owner.profileURL }}">
{% if isGroup %}
Expand Down

0 comments on commit c204e18

Please sign in to comment.