Skip to content

Commit

Permalink
Merge pull request #3460 from manyfold3d/add-concrete-type-extension
Browse files Browse the repository at this point in the history
add concrete type field to creator activitypub objects
  • Loading branch information
Floppy authored Jan 21, 2025
2 parents 4ed4083 + 179ef27 commit 5053227
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/models/creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,21 @@ def self.find_param(param)
def to_activitypub_object
{
"@context": {
manyfold: "http://manyfold.app/ns#",
toot: "http://joinmastodon.org/ns#",
attributionDomains: {
"@id": "toot:attributionDomains",
"@type": "@id"
},
concreteType: {
"@id": "manyfold:concreteType",
"@type": "@string"
}
},
attributionDomains: [
[Rails.application.default_url_options[:host], Rails.application.default_url_options[:port]].compact.join(":")
]
],
concreteType: "Creator"
}
end
end

0 comments on commit 5053227

Please sign in to comment.