Ptt-official-app/pttbbs-backend

線上使用者 list.

Open

#275 opened on Aug 6, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (17 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (34 stars)
PR merge metrics
 (Avg merge 21d 14h) (3 merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe.

既有的 ptt 有線上使用者 list. 即使目前無法跟舊版 ptt 互通 list. middleware 仍然需要可以提供站上鄉民的的 list.

ptt 有提供對於 friend + UtmpID, ID, 狀態, from, 五子棋, 性別, UtmpID, PID 的 sort~

middleware 端可以 focus 在所有線上使用者~ 好友狀態有另外一個 api 支援. frontend 使用時同時管理好友狀態和所有線上使用者的狀態.

Describe the solution you'd like

  1. 在 use-info 紀錄 last-ping-ts.
  2. show 出 last-ping-ts >= current-time - 2 mins. sorted by user-id.

Describe alternatives you've considered

Additional context

Contributor guide