Skip to content

Commit

Permalink
Merge pull request #3468 from manyfold3d/user-concrete-type
Browse files Browse the repository at this point in the history
Add concrete type to User activitystreams representation
  • Loading branch information
Floppy authored Jan 22, 2025
2 parents 32fd785 + a4e33d7 commit 4de8238
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@ def self.send_reset_password_instructions(attributes = {})
recoverable
end

def to_activitypub_object
{
"@context": {
manyfold: "http://manyfold.app/ns#",
concreteType: {
"@id": "manyfold:concreteType",
"@type": "@string"
}
},
concreteType: "User"
}
end

private

def has_any_role_of?(*args)
Expand Down

0 comments on commit 4de8238

Please sign in to comment.