diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 05:39:27 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 05:39:27 +0200 |
| commit | bb7ef80d084f474bb4c3be0ae0d033aff3de0272 (patch) | |
| tree | 4a608e033f2197ce3124c2cdbd50feb16c165d90 /app | |
| parent | 190daaa8a0bb79e750894b83e31b9d99f7d900a4 (diff) | |
Don't reference your own user as 'du' in action log. It breaks grammar.
Diffstat (limited to 'app')
| -rw-r--r-- | app/helpers/node_actions_helper.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/app/helpers/node_actions_helper.rb b/app/helpers/node_actions_helper.rb index ef42b75..55ca982 100644 --- a/app/helpers/node_actions_helper.rb +++ b/app/helpers/node_actions_helper.rb | |||
| @@ -19,9 +19,6 @@ module NodeActionsHelper | |||
| 19 | private | 19 | private |
| 20 | 20 | ||
| 21 | def actor_ref action | 21 | def actor_ref action |
| 22 | if action.user && respond_to?(:current_user) && action.user == current_user | ||
| 23 | return t("node_actions.actor_self") | ||
| 24 | end | ||
| 25 | action.user ? link_to(h(action.actor_name), admin_log_path(:user_id => action.user_id)) | 22 | action.user ? link_to(h(action.actor_name), admin_log_path(:user_id => action.user_id)) |
| 26 | : h(action.actor_name) | 23 | : h(action.actor_name) |
| 27 | end | 24 | end |
