update readme ...
This commit is contained in:
parent
9d917bd097
commit
b0e9c5c59b
1 changed files with 14 additions and 2 deletions
16
README.md
16
README.md
|
|
@ -42,8 +42,20 @@ DiasporaFederation.configure do |config|
|
||||||
# the pod url
|
# the pod url
|
||||||
config.server_uri = AppConfig.pod_uri
|
config.server_uri = AppConfig.pod_uri
|
||||||
|
|
||||||
# the class to be used for a person
|
config.define_callbacks do
|
||||||
config.person_class = Person
|
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
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue