fix: clarify friend since vs last seen
CI / test (push) Successful in 29s

Show lastlogoff as relative last-seen time, label friend_since as 'friends since YYYY', and show the Steam account creation year in the comparison header.
This commit is contained in:
strsv committed 2026-11-07 02:20:43 +03:00
1 parent 80aae1a1df
commit 85ff1e3893
7 files changed
+55 -7

No files matched your search

+6 -1
View File
@@ -404,9 +404,14 @@ SteamID; кэш на сервере — 1 час. Если профиль зак
```json
{"total": 1, "friends": [{"steamid": "7656119...", "name": "Ann",
"avatar": "https://...", "profile_url": "https://...", "state": 1}]}
"avatar": "https://...", "profile_url": "https://...", "state": 1,
"lastlogoff": 1700000000, "created": 1200000000,
"friend_since": 1578692405}]}
```
`friend_since` — когда вы стали друзьями (не последний вход). `lastlogoff` —
время последнего выхода из сети, `created` — дата создания аккаунта Steam.
`/api/steam/friends/{steamid}` (17 цифр) загружает `GetOwnedGames` друга и
сравнивает с локальной библиотекой: