1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 05:20:56 +01:00

Link user name in People log view to user page

Summary:
Looking at IPs who recently registered more than one account in
Phabricator and trying to figure out whether they are spam bots
or just all on the same university network, I often want to check
recent user activity of these accounts. Hence linking the entries
in the User column to their user page comes in handy.

Test Plan: Tested on local instance and works as expected.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D16620
This commit is contained in:
Andre Klapper 2016-09-28 08:47:33 -07:00 committed by epriestley
parent 32d660c08f
commit 360597d8ee

View file

@ -33,7 +33,6 @@ final class PhabricatorUserLogView extends AphrontView {
$rows = array(); $rows = array();
foreach ($logs as $log) { foreach ($logs as $log) {
$ip = $log->getRemoteAddr(); $ip = $log->getRemoteAddr();
$session = substr($log->getSession(), 0, 6); $session = substr($log->getSession(), 0, 6);
@ -62,7 +61,7 @@ final class PhabricatorUserLogView extends AphrontView {
$log->getActorPHID() $log->getActorPHID()
? $handles[$log->getActorPHID()]->getName() ? $handles[$log->getActorPHID()]->getName()
: null, : null,
$handles[$log->getUserPHID()]->getName(), $username = $handles[$log->getUserPHID()]->renderLink(),
$ip, $ip,
$session, $session,
); );