this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add missing fields from relay endpoints

+10 -6
+10 -6
cmd/relay/handlers.go
··· 81 81 82 82 for i, host := range hosts { 83 83 resp.Hosts[i] = &comatproto.SyncListHosts_Host{ 84 - // TODO: AccountCount 85 - Hostname: host.Hostname, 86 - Seq: &host.LastSeq, 87 - Status: (*string)(&host.Status), 84 + Hostname: host.Hostname, 85 + Seq: &host.LastSeq, 86 + Status: (*string)(&host.Status), 87 + AccountCount: &host.AccountCount, 88 88 } 89 89 } 90 90 ··· 148 148 return nil, echo.NewHTTPError(http.StatusInternalServerError, fmt.Sprintf("failed to get repo root for (%s): %v", acc.DID, err.Error())) 149 149 } 150 150 151 + active := acc.IsActive() 151 152 resp.Repos[i] = &comatproto.SyncListRepos_Repo{ 152 - Did: acc.DID, 153 - Head: repo.CommitCID, 153 + Did: acc.DID, 154 + Head: repo.CommitCID, 155 + Rev: repo.Rev, 156 + Active: &active, 157 + Status: acc.StatusField(), 154 158 } 155 159 } 156 160