mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-17 04:32:22 +00:00
Fix admin interface crash when displaying deleted user (#17301)
This commit is contained in:
parent
462bc65112
commit
081e4426f8
|
@ -2,7 +2,7 @@
|
|||
|
||||
module Admin::DashboardHelper
|
||||
def relevant_account_ip(account, ip_query)
|
||||
ips = account.user.ips.to_a
|
||||
ips = account.user.present? ? account.user.ips.to_a : []
|
||||
|
||||
matched_ip = begin
|
||||
ip_query_addr = IPAddr.new(ip_query)
|
||||
|
|
Loading…
Reference in a new issue