mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
render nothing at the top
This commit is contained in:
@@ -22,14 +22,15 @@ class PublicsController < ApplicationController
|
||||
end
|
||||
|
||||
def receive
|
||||
render :nothing => true
|
||||
begin
|
||||
@user = Person.first(:id => params[:id]).owner
|
||||
rescue NoMethodError => e
|
||||
Rails.logger.error("Received post #{params[:xml]} for nonexistent person #{params[:id}")
|
||||
return
|
||||
end
|
||||
Rails.logger.debug "PublicsController has received: #{params[:xml]}"
|
||||
@user.receive params[:xml] if params[:xml]
|
||||
render :nothing => true
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user