Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
like.go697 B
// Package item_like defines a Like on an item such as a post. Because the call // site will already have the item itself, this only needs to contain the owner. package item_like import ( "time" "github.com/rs/xid" "github.com/Southclaws/storyden/app/resources/profile" "github.com/Southclaws/storyden/internal/ent" ) // Like on the item side does not contain the item itself, just the owner. type Like struct { ID xid.ID Created time.Time Owner profile.Ref } func Map(in *ent.LikePost) (*Like, error) { owner, err := profile.MapRef(in.Edges.Account) if err != nil { return nil, err } return &Like{ ID: in.ID, Created: in.CreatedAt, Owner: *owner, }, nil }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server