mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-03 20:21:40 +00:00
feat: implement api v1 for users
This commit is contained in:
@ -343,16 +343,8 @@ func (raw *shortcutRaw) toShortcut() *api.Shortcut {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Store) ComposeShortcut(ctx context.Context, shortcut *api.Shortcut) error {
|
||||
user, err := s.FindUser(ctx, &api.UserFind{
|
||||
ID: &shortcut.CreatorID,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
user.OpenID = ""
|
||||
shortcut.Creator = user
|
||||
|
||||
func (*Store) ComposeShortcut(_ context.Context, _ *api.Shortcut) error {
|
||||
// TODO: implement this.
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user