Skip to content
Extraits de code Groupes Projets
Valider b80d75c3 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

Merge branch 'master' of github.com:diaspora/diaspora

parents 40c96fc6 fc9cddc7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -33,7 +33,9 @@ class PublicsController < ApplicationController ...@@ -33,7 +33,9 @@ class PublicsController < ApplicationController
render :nothing => true render :nothing => true
return unless params[:xml] return unless params[:xml]
begin begin
@user = Person.first(:id => params[:id]).owner person = Person.first(:id => params[:id])
puts person.real_name
@user = person.owner
rescue NoMethodError => e rescue NoMethodError => e
Rails.logger.error("Received post for nonexistent person #{params[:id]}") Rails.logger.error("Received post for nonexistent person #{params[:id]}")
return return
......
...@@ -33,6 +33,7 @@ module RequestsHelper ...@@ -33,6 +33,7 @@ module RequestsHelper
def relationship_flow(identifier) def relationship_flow(identifier)
action = :none action = :none
person = nil person = nil
puts identifier
person = Person.by_webfinger identifier person = Person.by_webfinger identifier
if person if person
action = (person == current_user.person ? :none : :friend) action = (person == current_user.person ? :none : :friend)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
require 'config/environment' require 'config/environment'
remote_url = "http://tom.joindiaspora.com/" remote_url = "http://tom.joindiaspora.com/"
remote_url = "http://localhost:3000/" #remote_url = "http://localhost:3000/"
# Create seed user # Create seed user
user = User.instantiate!( :email => "tom@tom.joindiaspora.com", user = User.instantiate!( :email => "tom@tom.joindiaspora.com",
:username => "tom", :username => "tom",
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter