mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Hide localhost IP in activities
This commit is contained in:
parent
f1b883b54b
commit
7b299eeecc
@ -16,7 +16,7 @@ class ActivityDatatable extends EntityDatatable
|
||||
function ($model) {
|
||||
$str = Utils::timestampToDateTimeString(strtotime($model->created_at));
|
||||
|
||||
if ($model->contact_id) {
|
||||
if ($model->contact_id && $model->ip != '127.0.0.1') {
|
||||
$ipLookUpLink = IP_LOOKUP_URL . $model->ip;
|
||||
$str .= sprintf(' <i class="fa fa-globe" style="cursor:pointer" title="%s" onclick="openUrl(\'%s\', \'IP Lookup\')"></i>', $model->ip, $ipLookUpLink);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user