Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
233a2d2bb2
2 changed files with 3 additions and 1 deletions
|
|
@ -13,12 +13,13 @@ class StatusMessage < Post
|
||||||
def to_activity
|
def to_activity
|
||||||
<<-XML
|
<<-XML
|
||||||
<entry>
|
<entry>
|
||||||
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
|
||||||
<title>#{self.message}</title>
|
<title>#{self.message}</title>
|
||||||
<link rel="alternate" type="text/html" href="#{person.url}status_messages/#{self.id}"/>
|
<link rel="alternate" type="text/html" href="#{person.url}status_messages/#{self.id}"/>
|
||||||
<id>#{person.url}status_messages/#{self.id}</id>
|
<id>#{person.url}status_messages/#{self.id}</id>
|
||||||
<published>#{self.created_at.xmlschema}</published>
|
<published>#{self.created_at.xmlschema}</published>
|
||||||
<updated>#{self.updated_at.xmlschema}</updated>
|
<updated>#{self.updated_at.xmlschema}</updated>
|
||||||
|
<activity:verb>http://activitystrea.ms/schema/1.0/post</activity:verb>
|
||||||
|
<activity:object-type>http://activitystrea.ms/schema/1.0/note</activity:object-type>
|
||||||
</entry>
|
</entry>
|
||||||
XML
|
XML
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ module Diaspora
|
||||||
def create_endpoints
|
def create_endpoints
|
||||||
<<-XML
|
<<-XML
|
||||||
<link href="#{APP_CONFIG[:pubsub_server]}" rel="hub"/>
|
<link href="#{APP_CONFIG[:pubsub_server]}" rel="hub"/>
|
||||||
|
<link href="#{@user.public_url}.atom" rel="self" type="application/atom+xml"/>
|
||||||
XML
|
XML
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue