MS removed a log and trying to be slightly more pedantic

This commit is contained in:
maxwell 2010-09-20 15:32:18 -07:00
parent 5e2fdedf8b
commit cb0f0b72eb
2 changed files with 4 additions and 1 deletions

View file

@ -33,7 +33,9 @@ class PublicsController < ApplicationController
render :nothing => true
return unless params[:xml]
begin
@user = Person.first(:id => params[:id]).owner
person = Person.first(:id => params[:id])
puts person.real_name
@user = person.owner
rescue NoMethodError => e
Rails.logger.error("Received post for nonexistent person #{params[:id]}")
return

View file

@ -33,6 +33,7 @@ module RequestsHelper
def relationship_flow(identifier)
action = :none
person = nil
puts identifier
person = Person.by_webfinger identifier
if person
action = (person == current_user.person ? :none : :friend)