feat: public API, SEO and existing surfaces
This commit is contained in:
1 parent
45fbbc33b1
commit
c390fcfe8d
103 files changed
+4476
-231
No files matched your search
@@ -283,6 +283,9 @@ func (m *mockAuthorRepo) AvatarUsage() (map[uint32]int, error) {
|
||||
}
|
||||
|
||||
func (m *mockAuthorRepo) FindByAvatar(imageID uint32) ([]author.Author, error) {
|
||||
if err := m.fail.trigger("FindByAvatar"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
found := []author.Author{}
|
||||
for _, id := range m.sortedIDsAscending() {
|
||||
if a := m.authors[id]; a.AvatarID != nil && *a.AvatarID == imageID {
|
||||
|
||||
Reference in new issue
Block a user