1
0
Fork 0
forked from mirror/pixelfed

Update v1.1 api

This commit is contained in:
Daniel Supernault 2022-09-24 23:38:08 -06:00
parent 613e98ce09
commit 34b57783c4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -265,6 +265,7 @@ class ApiV1Dot1Controller extends Controller
$activity = AccountLog::whereUserId($user->id) $activity = AccountLog::whereUserId($user->id)
->whereAction('auth.login') ->whereAction('auth.login')
->orderBy('created_at', 'desc') ->orderBy('created_at', 'desc')
->groupBy('ip_address')
->limit(10) ->limit(10)
->get() ->get()
->map(function($item) use($agent, $currentIp) { ->map(function($item) use($agent, $currentIp) {