From b0e9c5c59b83ab19f079366fd762f44e14c07599 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Fri, 10 Jul 2015 02:35:56 +0200 Subject: [PATCH] update readme ... --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aab75d4..a7818ed 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,20 @@ DiasporaFederation.configure do |config| # the pod url config.server_uri = AppConfig.pod_uri - # the class to be used for a person - config.person_class = Person + config.define_callbacks do + on :person_webfinger_fetch do |handle| + person = Person.find_local_by_diaspora_handle(handle) + if person + DiasporaFederation::WebFinger::WebFinger.new( + # ... + ) + end + end + + on :person_hcard_fetch do |guid| + # ... + end + end end ```