diaspora/app/helpers/activity_streams_helper.rb
2017-05-05 02:30:46 +02:00

12 lines
422 B
Ruby

module ActivityStreamsHelper
def add_activitystreams_author(target, person)
target.author do |author|
author.name person.name
author.uri local_or_remote_person_path(person, absolute: true)
author.tag! "activity:object-type", "http://activitystrea.ms/schema/1.0/person"
author.tag! "poco:preferredUsername", person.username
author.tag! "poco:displayName", person.name
end
end
end