fix IP url
This commit is contained in:
parent
c932a67928
commit
a7f07dfd46
|
@ -316,7 +316,7 @@
|
|||
<ul>
|
||||
@ips.map { ip =>
|
||||
<li class="ip">
|
||||
<a class="address @if(ip.blocked){blocked}" href="@{routes.Mod.search}?q=@ip.ip">
|
||||
<a class="address @if(ip.blocked){blocked}" href="@{routes.Mod.search}?q=@ip.ip.value">
|
||||
@ip.ip.value.value @momentFromNow(ip.ip.date)
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -33,7 +33,7 @@ object HTTPRequest {
|
|||
def referer(req: RequestHeader): Option[String] = req.headers get HeaderNames.REFERER
|
||||
|
||||
def lastRemoteAddress(req: RequestHeader) = IpAddress {
|
||||
(req.remoteAddress.split(", ").lastOption | req.remoteAddress).trim
|
||||
req.remoteAddress.split(", ").lastOption | req.remoteAddress
|
||||
}
|
||||
|
||||
def sid(req: RequestHeader): Option[String] = req.session get LilaCookie.sessionId
|
||||
|
|
Loading…
Reference in a new issue