]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Webfinger instructions were incomplete/erroneous -- now they are not.
authorAdam Moore <laemeur@sdf.org>
Wed, 11 Feb 2015 00:36:32 +0000 (16:36 -0800)
committerAdam Moore <laemeur@sdf.org>
Wed, 11 Feb 2015 00:36:32 +0000 (16:36 -0800)
socialfy-your-domain/README.txt
socialfy-your-domain/dot-well-known/host-meta
socialfy-your-domain/xrd/example@example.com.xml [new file with mode: 0644]

index ead4380f21af26a2b238e49071c165fc63ef71c5..53d44ce322e7aba79ee3ab2747230663961e4ce7 100644 (file)
@@ -24,7 +24,7 @@ $s = "";
 
 This can be anything you like...
 
-$s = "johnny-five";
+$s = "johnny5";
 
 or 
 
@@ -32,23 +32,33 @@ $s = "12345";
 
 It really doesn't matter too much.
 
+
 Step 3
 ======
 
+Edit the .well-known/host-meta file and replace all occurrences of
+"example.com" with your domain name.
+
+Step 4
+======
+
 For each user on your site, and this might only be you...
 
-Make a copy of the example@example.com.xml file so that it's called...
+In the xrd directory, make a copy of the example@example.com.xml file
+so that it's called...
 
      yoursecretusername@domain.com.xml
 
-     So, if your secret is 'johnny5' and your name is ben and your
-     domain is titanictoycorp.biz, your file should be called
-     johnny5ben@titanictoycorp.biz.xml
+So, if your secret from step 2 is 'johnny5' and your name is 'ben' and
+your domain is 'titanictoycorp.biz', your file should be called
+johnny5ben@titanictoycorp.biz.xml
 
-Finally, edit the file to point at your account on your social
-site. If you are the only user, then you probably don't need to worry
-about user/1 as this will be you. For multi user sites, the user ID is
-on the profile page.
+Then edit the file, replacing "social.example.com" with your GNU
+social instance's base path, and change the user ID number (and
+nickname for the FOAF link) to that of your account on your social
+site. If you don't know your user ID number, you can see this on your
+GNU social profile page by looking at the destination URLs in the
+Feeds links.
 
 Finally
 =======
index a8d9fe0284ffad5169ed28fa7b3262d7e09dfe37..1929b2eb8ef4fcd995bb1050dee504e77b4de215 100644 (file)
@@ -1 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?><XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xmlns:hm="http://host-meta.net/xrd/1.0"><hm:Host>example.com</hm:Host><Link rel="lrdd" template="http://example.com/.well-known/webfinger?resource={uri}"><Title>WebFinger resource descriptor</Title></Link></XRD>
+<?xml version="1.0" encoding="UTF-8"?>
+<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0"
+     xmlns:hm="http://host-meta.net/xrd/1.0">  
+  <hm:Host>example.com</hm:Host>
+  <Link rel="lrdd" template="http://example.com/.well-known/xrd?uri={uri}">
+    <Title>WebFinger resource descriptor</Title>
+  </Link>
+</XRD>
diff --git a/socialfy-your-domain/xrd/example@example.com.xml b/socialfy-your-domain/xrd/example@example.com.xml
new file mode 100644 (file)
index 0000000..b713efe
--- /dev/null
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
+  <Subject>acct:example@example.com</Subject>
+  <Alias>acct:example@social.example.com</Alias>
+  <Alias>http://social.example.com/user/1</Alias>
+  <Link rel="http://webfinger.net/rel/profile-page"
+        type="text/html"
+       href="http://social.example.com/user/1"/>
+    
+  <Link rel="http://schemas.google.com/g/2010#updates-from"
+       type="application/atom+xml"
+       href="http://social.example.com/api/statuses/user_timeline/1.atom"/>
+    
+  <!-- Is this/was this ever supported?
+       <Link rel="http://microformats.org/profile/hcard"
+       type="text/html"
+       href="http://social.example.com/hcard"/> -->
+  
+  <Link rel="http://gmpg.org/xfn/11"
+       type="text/html"
+       href="http://social.example.com/user/1"/>
+    
+  <Link rel="describedby"
+       type="application/rdf+xml"
+       href="http://social.example.com/username/foaf"/>
+
+  <Link rel="http://salmon-protocol.org/ns/salmon-replies"
+       href="http://social.example.com/main/salmon/user/1"/>
+    
+  <Link rel="http://salmon-protocol.org/ns/salmon-mention"
+       href="http://social.example.com/main/salmon/user/1"/>
+    
+  <Link rel="http://ostatus.org/schema/1.0/subscribe"
+       template="http://social.example.com/main/ostatussub?profile={uri}"/>
+</XRD>