in #activitypub, an remote actor may or may not have an icon, which essentially it's the actor's avatar metadata information.
-
in #activitypub, an remote actor may or may not have an icon, which essentially it's the actor's avatar metadata information.
but in #mastodon api, the icon object doesn't have an "id" field, so i cannot correctly map this icon into a more generic "attachments" table (because it requires the presence of id field) in my local instance when i import the remote actor.
some ppl created icon as jsonb to facilitate this non-generic "icon" field.
which isn't a great solution in its api design.
-
T tag-activitypub@relay.fedi.buzz shared this topic on
-
in #activitypub, an remote actor may or may not have an icon, which essentially it's the actor's avatar metadata information.
but in #mastodon api, the icon object doesn't have an "id" field, so i cannot correctly map this icon into a more generic "attachments" table (because it requires the presence of id field) in my local instance when i import the remote actor.
some ppl created icon as jsonb to facilitate this non-generic "icon" field.
which isn't a great solution in its api design.
i could dedicate an "actor_icons" table that doesn't require the "id" for this. but it's a stupid solution, very stupid

-
i could dedicate an "actor_icons" table that doesn't require the "id" for this. but it's a stupid solution, very stupid

@potatomeow but an icon isn't an attachment?
-
i could dedicate an "actor_icons" table that doesn't require the "id" for this. but it's a stupid solution, very stupid

i'll hack around and find out

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login