Skip to content

Commit

Permalink
Update Actor images
Browse files Browse the repository at this point in the history
with (hopefully) PixelFed-compatable formatting...
  • Loading branch information
benpate committed Aug 28, 2024
1 parent d869372 commit c5193ba
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,24 @@ func (user User) GetJSONLD() mapof.Any {
vocab.PropertySummary: user.StatusMessage,
vocab.PropertyTootDiscoverable: user.IsDiscoverable,
vocab.PropertyTootIndexable: user.IsIndexable,
vocab.PropertyIcon: user.ActivityPubIconURL(),
vocab.PropertyImage: user.ActivityPubImageURL(),
vocab.PropertyInbox: user.ActivityPubInboxURL(),
vocab.PropertyOutbox: user.ActivityPubOutboxURL(),
vocab.PropertyFollowing: user.ActivityPubFollowingURL(),
vocab.PropertyFollowers: user.ActivityPubFollowersURL(),
vocab.PropertyLiked: user.ActivityPubLikedURL(),
vocab.PropertyBlocked: user.ActivityPubBlockedURL(),

vocab.PropertyIcon: mapof.Any{
vocab.PropertyType: vocab.ObjectTypeImage,
vocab.PropertyMediaType: "image/webp",
vocab.PropertyURL: user.ActivityPubIconURL(),
},

vocab.PropertyImage: mapof.Any{
vocab.PropertyType: vocab.ObjectTypeImage,
vocab.PropertyMediaType: "image/webp",
vocab.PropertyURL: user.ActivityPubImageURL(),
},
}

// Conditionally add the Avatar URL
Expand Down

0 comments on commit c5193ba

Please sign in to comment.