Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. General Discussion
  3. 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.

Scheduled Pinned Locked Moved General Discussion
activitypubmastodon
4 Posts 2 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • potatomeow@fosstodon.orgP This user is from outside of this forum
    potatomeow@fosstodon.orgP This user is from outside of this forum
    potatomeow@fosstodon.org
    wrote on last edited by
    #1

    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.

    potatomeow@fosstodon.orgP 1 Reply Last reply
    1
    0
    • tag-activitypub@relay.fedi.buzzT tag-activitypub@relay.fedi.buzz shared this topic on
    • potatomeow@fosstodon.orgP potatomeow@fosstodon.org

      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.

      potatomeow@fosstodon.orgP This user is from outside of this forum
      potatomeow@fosstodon.orgP This user is from outside of this forum
      potatomeow@fosstodon.org
      wrote on last edited by
      #2

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

      evan@cosocial.caE potatomeow@fosstodon.orgP 2 Replies Last reply
      0
      • potatomeow@fosstodon.orgP potatomeow@fosstodon.org

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

        evan@cosocial.caE This user is from outside of this forum
        evan@cosocial.caE This user is from outside of this forum
        evan@cosocial.ca
        wrote on last edited by
        #3

        @potatomeow but an icon isn't an attachment?

        1 Reply Last reply
        0
        • potatomeow@fosstodon.orgP potatomeow@fosstodon.org

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

          potatomeow@fosstodon.orgP This user is from outside of this forum
          potatomeow@fosstodon.orgP This user is from outside of this forum
          potatomeow@fosstodon.org
          wrote on last edited by
          #4

          i'll hack around and find out

          1 Reply Last reply
          0

          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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups