Module: ActivityStreamsHelper

Defined in:
app/helpers/activity_streams_helper.rb

Instance Method Summary collapse

Instance Method Details

#add_activitystreams_author(target, person) ⇒ Object


4
5
6
7
8
9
10
11
12
13
# File 'app/helpers/activity_streams_helper.rb', line 4

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