Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
profile_like.go821 B
// Package profile_like defines a Like within the context of a profile. Because // the call site will already have the profile, it doesn't need the owner field. package profile_like import ( "time" "github.com/rs/xid" "github.com/Southclaws/storyden/app/resources/datagraph" "github.com/Southclaws/storyden/app/resources/post" "github.com/Southclaws/storyden/internal/ent" ) // Like on the profile side does not contain the owner, just the liked item. type Like struct { ID xid.ID Created time.Time Item datagraph.Item } func Map(in *ent.LikePost) (*Like, error) { postEdge, err := in.Edges.PostOrErr() if err != nil { return nil, err } item, err := post.Map(postEdge) if err != nil { return nil, err } return &Like{ ID: in.ID, Created: in.CreatedAt, Item: item, }, 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