Hide IP addresses from activity logs not generated by the user themselves
This commit is contained in:
parent
b570769a34
commit
4aa163b76f
5 changed files with 15 additions and 18 deletions
|
@ -75,13 +75,12 @@ export default ({ activity, children }: Props) => {
|
|||
<Translate ns={'activity'} values={properties} i18nKey={activity.event.replace(':', '.')} />
|
||||
</p>
|
||||
<div className={'mt-1 flex items-center text-sm'}>
|
||||
<Link
|
||||
to={`#${pathTo({ ip: activity.ip })}`}
|
||||
className={'transition-colors duration-75 active:text-cyan-400 hover:text-cyan-400'}
|
||||
>
|
||||
{activity.ip}
|
||||
</Link>
|
||||
<span className={'text-gray-400'}> | </span>
|
||||
{activity.ip && (
|
||||
<span>
|
||||
{activity.ip}
|
||||
<span className={'text-gray-400'}> | </span>
|
||||
</span>
|
||||
)}
|
||||
<Tooltip placement={'right'} content={format(activity.timestamp, 'MMM do, yyyy H:mm:ss')}>
|
||||
<span>{formatDistanceToNowStrict(activity.timestamp, { addSuffix: true })}</span>
|
||||
</Tooltip>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue