mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
putting debug in for master so I can check deployed servers out
This commit is contained in:
@@ -9,7 +9,9 @@ class DashboardController < ApplicationController
|
||||
|
||||
|
||||
def receive
|
||||
store_posts_from_xml CGI::unescape(params[:xml])
|
||||
xml = CGI::unescape(params[:xml])
|
||||
puts xml
|
||||
store_posts_from_xml xml
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ module ApplicationHelper
|
||||
when "User"
|
||||
user_path(person)
|
||||
else
|
||||
"#"
|
||||
link_to "unknown person", "#"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -25,10 +25,6 @@ class Post
|
||||
Post.sort(:created_at.desc).all
|
||||
end
|
||||
|
||||
def each
|
||||
yield self
|
||||
end
|
||||
|
||||
def self.newest(person = nil)
|
||||
return self.last if person.nil?
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class MessageHandler
|
||||
case query.type
|
||||
when :post
|
||||
http = EventMachine::HttpRequest.new(query.destination).post :timeout => TIMEOUT, :body =>{:xml => query.body}
|
||||
http.callback { process}
|
||||
http.callback {puts query.inspect; process}
|
||||
when :get
|
||||
http = EventMachine::HttpRequest.new(query.destination).get :timeout => TIMEOUT
|
||||
http.callback {send_to_seed(query, http.response); process}
|
||||
|
||||
Reference in New Issue
Block a user