diff --git a/app/models/status_message.rb b/app/models/status_message.rb index 9211c6fe6..f9e3b8331 100644 --- a/app/models/status_message.rb +++ b/app/models/status_message.rb @@ -102,7 +102,7 @@ class StatusMessage < Post #{x(self.formatted_message(:plain_text => true))} #{x(self.formatted_message(:plain_text => true))} - #{self.author.url}posts/#{self.id} + #{self.author.url}p/#{self.id} #{self.created_at.xmlschema} #{self.updated_at.xmlschema} http://activitystrea.ms/schema/1.0/post diff --git a/lib/diaspora/ostatus_builder.rb b/lib/diaspora/ostatus_builder.rb index fd2a90c11..bd5b81931 100644 --- a/lib/diaspora/ostatus_builder.rb +++ b/lib/diaspora/ostatus_builder.rb @@ -36,10 +36,19 @@ module Diaspora Updates from #{x(@user.name)} on Diaspora #{@user.person.profile.image_url(:thumb_small)} #{Time.now.xmlschema} - + XML + end + + def create_subject + <<-XML + http://activitystrea.ms/schema/1.0/person #{x(@user.name)} - #{@user.public_url} + "#{AppConfig[:pod_url]}/people/#{@user.person.id}" + + #{x(@user.username)} + #{x(@user.person.name)} + XML end @@ -51,18 +60,6 @@ module Diaspora XML end - def create_subject - <<-XML - - http://activitystrea.ms/schema/1.0/person - #{@user.public_url} - #{x(@user.name)} - - - - XML - end - def create_body @posts.inject("") do |xml,curr| if curr.respond_to?(:to_activity) diff --git a/spec/models/jobs/receive_local_batch_spec.rb b/spec/models/jobs/receive_local_batch_spec.rb index 1078e91ac..650d33e5a 100644 --- a/spec/models/jobs/receive_local_batch_spec.rb +++ b/spec/models/jobs/receive_local_batch_spec.rb @@ -42,7 +42,7 @@ describe Job::ReceiveLocalBatch do SocketsController.stub(:new).and_return(@controller) end it 'sockets to each user' do - @controller.should_receive(:outgoing).with(bob.id, @post, {}) + @controller.should_receive(:outgoing).with(bob.id, @post, instance_of(Hash)) Job::ReceiveLocalBatch.socket_to_users(@post, [bob.id]) end end