tiny 88x31 lexicon for atproto
0
fork

Configure Feed

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

beep

+2 -3
+1 -2
db/lexicon.go
··· 86 86 var postedAt time.Time 87 87 for rows.Next() { 88 88 var btnView types.ButtonView 89 - err := rows.Scan(&btnView.Src, &btnView.DID, &btnView.Alt, &btnView.HREF, &postedAt, &btnView.Likes) 89 + err := rows.Scan(&btnView.URI, &btnView.DID, &btnView.Alt, &btnView.HREF, &postedAt, &btnView.Likes) 90 90 if err != nil { 91 91 return nil, time.Time{}, err 92 92 } 93 - btnView.Src = fmt.Sprintf("/xrpc/store.88x31.getButton?uri=%s", btnView.Src) 94 93 buttons = append(buttons, btnView) 95 94 } 96 95 return buttons, postedAt, nil
+1 -1
types/lexicon.go
··· 17 17 } 18 18 19 19 type ButtonView struct { 20 + URI string `json:"src"` 20 21 DID string `json:"did"` 21 - Src string `json:"src"` 22 22 Alt *string `json:"alt,omitempty"` 23 23 HREF *string `json:"href,omitempty"` 24 24 Likes int `json:"likes"`