From 42863896546d5638bedeb034d5c1001d1f0f35a8 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 15 Aug 2014 06:06:39 -0700 Subject: doc update --- doc/html/diaspora_8php.html | 1238 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1238 insertions(+) create mode 100644 doc/html/diaspora_8php.html (limited to 'doc/html/diaspora_8php.html') diff --git a/doc/html/diaspora_8php.html b/doc/html/diaspora_8php.html new file mode 100644 index 000000000..69825ab17 --- /dev/null +++ b/doc/html/diaspora_8php.html @@ -0,0 +1,1238 @@ + + + + + + +The Red Matrix: include/diaspora.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Matrix +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
diaspora.php File Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

 diaspora_dispatch_public ($msg)
 
 diaspora_dispatch ($importer, $msg, $attempt=1)
 
 diaspora_handle_from_contact ($contact_id)
 
 diaspora_get_contact_by_handle ($uid, $handle)
 
 find_diaspora_person_by_handle ($handle)
 
 get_diaspora_key ($uri)
 
 diaspora_pubmsg_build ($msg, $user, $contact, $prvkey, $pubkey)
 
 diaspora_msg_build ($msg, $user, $contact, $prvkey, $pubkey, $public=false)
 
 diaspora_decode ($importer, $xml)
 
 diaspora_request ($importer, $xml)
 
 diaspora_post_allow ($importer, $contact)
 
 diaspora_post ($importer, $xml, $msg)
 
 diaspora_reshare ($importer, $xml, $msg)
 
 diaspora_asphoto ($importer, $xml, $msg)
 
 diaspora_comment ($importer, $xml, $msg)
 
 diaspora_conversation ($importer, $xml, $msg)
 
 diaspora_message ($importer, $xml, $msg)
 
 diaspora_photo ($importer, $xml, $msg, $attempt=1)
 
 diaspora_like ($importer, $xml, $msg)
 
 diaspora_retraction ($importer, $xml)
 
 diaspora_signed_retraction ($importer, $xml, $msg)
 
 diaspora_profile ($importer, $xml, $msg)
 
 diaspora_share ($me, $contact)
 
 diaspora_unshare ($me, $contact)
 
 diaspora_send_status ($item, $owner, $contact, $public_batch=false)
 
 diaspora_is_reshare ($body)
 
 diaspora_send_images ($item, $owner, $contact, $images, $public_batch=false)
 
 diaspora_send_followup ($item, $owner, $contact, $public_batch=false)
 
 diaspora_send_relay ($item, $owner, $contact, $public_batch=false)
 
 diaspora_send_retraction ($item, $owner, $contact, $public_batch=false)
 
 diaspora_send_mail ($item, $owner, $contact)
 
 diaspora_transmit ($owner, $contact, $slap, $public_batch, $queue_run=false)
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_asphoto ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_comment ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_conversation ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_decode ( $importer,
 $xml 
)
+
+

diaspora_decode($importer,$xml) array $importer -> from user table string $xml -> urldecoded Diaspora salmon

+

Returns array 'message' -> decoded Diaspora XML message 'author' -> author diaspora handle 'key' -> author public key (converted to pkcs#8)

+

Author and key are used elsewhere to save a lookup for verifying replies and likes

+
 $decrypted now contains something like
+
+  <decrypted_header>
+     <iv>8e+G2+ET8l5BPuW0sVTnQw==</iv>
+     <aes_key>UvSMb4puPeB14STkcDWq+4QE302Edu15oaprAQSkLKU=</aes_key>
+

OBSOLETE

+
     <author>
+       <name>Ryan Hughes</name>
+       <uri>acct:galaxor@diaspora.pirateship.org</uri>
+     </author>
+

CURRENT

+
     <author_id>galaxor@diaspora.priateship.org</author_id>
+

END DIFFS

+
  </decrypted_header>
+
+

Referenced by receive_post().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_dispatch ( $importer,
 $msg,
 $attempt = 1 
)
+
+ +

Referenced by diaspora_dispatch_public(), and receive_post().

+ +
+
+ +
+
+ + + + + + + + +
diaspora_dispatch_public ( $msg)
+
+ +

Referenced by receive_post().

+ +
+
+ + + +
+
+ + + + + + + + +
diaspora_handle_from_contact ( $contact_id)
+
+ +

Referenced by diaspora_send_relay().

+ +
+
+ +
+
+ + + + + + + + +
diaspora_is_reshare ( $body)
+
+ +

Referenced by diaspora_send_status().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_like ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_message ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_msg_build ( $msg,
 $user,
 $contact,
 $prvkey,
 $pubkey,
 $public = false 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_photo ( $importer,
 $xml,
 $msg,
 $attempt = 1 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_post ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_post_allow ( $importer,
 $contact 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_profile ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_pubmsg_build ( $msg,
 $user,
 $contact,
 $prvkey,
 $pubkey 
)
+
+ +

Referenced by diaspora_msg_build().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_request ( $importer,
 $xml 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_reshare ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_retraction ( $importer,
 $xml 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_followup ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_images ( $item,
 $owner,
 $contact,
 $images,
 $public_batch = false 
)
+
+ +

Referenced by diaspora_send_status().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_mail ( $item,
 $owner,
 $contact 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_relay ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_retraction ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_send_status ( $item,
 $owner,
 $contact,
 $public_batch = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_share ( $me,
 $contact 
)
+
+ +

Referenced by diaspora_request().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_signed_retraction ( $importer,
 $xml,
 $msg 
)
+
+ +

Referenced by diaspora_dispatch().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diaspora_transmit ( $owner,
 $contact,
 $slap,
 $public_batch,
 $queue_run = false 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
diaspora_unshare ( $me,
 $contact 
)
+
+ +
+
+ +
+
+ + + + + + + + +
find_diaspora_person_by_handle ( $handle)
+
+
+ +
+
+ + + + + + + + +
get_diaspora_key ( $uri)
+
+ +

Referenced by diaspora_decode().

+ +
+
+
+
+ -- cgit v1.2.3 From 9f22f28d2f4bae5fa2a4947fc01af6200a5a5223 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 22 Aug 2014 15:51:03 -0700 Subject: doc update --- doc/html/diaspora_8php.html | 69 ++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 39 deletions(-) (limited to 'doc/html/diaspora_8php.html') diff --git a/doc/html/diaspora_8php.html b/doc/html/diaspora_8php.html index 69825ab17..fa14301e9 100644 --- a/doc/html/diaspora_8php.html +++ b/doc/html/diaspora_8php.html @@ -116,14 +116,16 @@ Functions    diaspora_dispatch ($importer, $msg, $attempt=1)   - diaspora_handle_from_contact ($contact_id) -  + diaspora_is_blacklisted ($s) +  + diaspora_handle_from_contact ($contact_hash) +   diaspora_get_contact_by_handle ($uid, $handle)    find_diaspora_person_by_handle ($handle)   - get_diaspora_key ($uri) -  + get_diaspora_key ($handle) +   diaspora_pubmsg_build ($msg, $user, $contact, $prvkey, $pubkey)    diaspora_msg_build ($msg, $user, $contact, $prvkey, $pubkey, $public=false) @@ -132,8 +134,6 @@ Functions    diaspora_request ($importer, $xml)   - diaspora_post_allow ($importer, $contact) -   diaspora_post ($importer, $xml, $msg)    diaspora_reshare ($importer, $xml, $msg) @@ -405,7 +405,7 @@ Functions - +
@@ -413,7 +413,7 @@ Functions - +
diaspora_handle_from_contact (  $contact_id)$contact_hash)
@@ -421,6 +421,24 @@ Functions

Referenced by diaspora_send_relay().

+
+
+ +
+
+ + + + + + + + +
diaspora_is_blacklisted ( $s)
+
@@ -633,34 +651,6 @@ Functions

Referenced by diaspora_dispatch().

- - - -
-
- - - - - - - - - - - - - - - - - - -
diaspora_post_allow ( $importer,
 $contact 
)
-
@@ -766,6 +756,7 @@ Functions
+

If there is a default group for this channel, add this member to it

Referenced by diaspora_dispatch().

@@ -1211,11 +1202,11 @@ Functions
- +
@@ -1223,7 +1214,7 @@ Functions - +
get_diaspora_key (  $uri)$handle)
-- cgit v1.2.3 From 345d170236572866c0aa29698d5089f4d2bf7c11 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 29 Aug 2014 17:31:29 -0700 Subject: doc update --- doc/html/diaspora_8php.html | 50 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 10 deletions(-) (limited to 'doc/html/diaspora_8php.html') diff --git a/doc/html/diaspora_8php.html b/doc/html/diaspora_8php.html index fa14301e9..5d5b0102d 100644 --- a/doc/html/diaspora_8php.html +++ b/doc/html/diaspora_8php.html @@ -118,6 +118,8 @@ Functions    diaspora_is_blacklisted ($s)   + diaspora_process_outbound ($arr) +   diaspora_handle_from_contact ($contact_hash)    diaspora_get_contact_by_handle ($uid, $handle) @@ -126,10 +128,10 @@ Functions    get_diaspora_key ($handle)   - diaspora_pubmsg_build ($msg, $user, $contact, $prvkey, $pubkey) -  - diaspora_msg_build ($msg, $user, $contact, $prvkey, $pubkey, $public=false) -  + diaspora_pubmsg_build ($msg, $channel, $contact, $prvkey, $pubkey) +  + diaspora_msg_build ($msg, $channel, $contact, $prvkey, $pubkey, $public=false) +   diaspora_decode ($importer, $xml)    diaspora_request ($importer, $xml) @@ -527,7 +529,7 @@ Functions
- +
@@ -541,7 +543,7 @@ Functions - + @@ -651,6 +653,24 @@ Functions

Referenced by diaspora_dispatch().

+ + + +
+
+
 $user, $channel,
+ + + + + + + +
diaspora_process_outbound ( $arr)
+
+ +

Referenced by notifier_run().

+
@@ -687,7 +707,7 @@ Functions - +
@@ -701,7 +721,7 @@ Functions - + @@ -729,7 +749,7 @@ Functions
 $user, $channel,
-

Referenced by diaspora_msg_build().

+

Referenced by diaspora_msg_build().

@@ -860,6 +880,8 @@ Functions
+

Referenced by diaspora_process_outbound().

+
@@ -938,6 +960,8 @@ Functions
+

Referenced by diaspora_process_outbound().

+
@@ -976,6 +1000,8 @@ Functions
+

Referenced by diaspora_process_outbound().

+
@@ -1014,6 +1040,8 @@ Functions
+

Referenced by diaspora_process_outbound().

+
@@ -1052,6 +1080,8 @@ Functions
+

Referenced by diaspora_process_outbound().

+
@@ -1078,7 +1108,7 @@ Functions
-

Referenced by diaspora_request().

+

Referenced by diaspora_request(), and notifier_run().

-- cgit v1.2.3 From ab7f2db4d755d11b9c4a7a27d60b6efafae47f92 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 12 Sep 2014 00:59:23 -0700 Subject: doc updates and a couple of issues spotted in the logs (diaspora likes, feed author import) --- doc/html/diaspora_8php.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/diaspora_8php.html') diff --git a/doc/html/diaspora_8php.html b/doc/html/diaspora_8php.html index 5d5b0102d..071cf0de4 100644 --- a/doc/html/diaspora_8php.html +++ b/doc/html/diaspora_8php.html @@ -158,10 +158,10 @@ Functions    diaspora_profile ($importer, $xml, $msg)   - diaspora_share ($me, $contact) -  - diaspora_unshare ($me, $contact) -  + diaspora_share ($owner, $contact) +  + diaspora_unshare ($owner, $contact) +   diaspora_send_status ($item, $owner, $contact, $public_batch=false)    diaspora_is_reshare ($body) @@ -577,7 +577,7 @@ Functions @@ -1084,7 +1084,7 @@ Functions - + - +
@@ -1200,7 +1200,7 @@ Functions - + -- cgit v1.2.3 From 8e7e488ffe92030707a792584adecc93cd9a3708 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 Oct 2014 00:13:00 -0700 Subject: doc updates --- doc/html/diaspora_8php.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'doc/html/diaspora_8php.html') diff --git a/doc/html/diaspora_8php.html b/doc/html/diaspora_8php.html index 071cf0de4..6396a547b 100644 --- a/doc/html/diaspora_8php.html +++ b/doc/html/diaspora_8php.html @@ -138,6 +138,8 @@ Functions + + @@ -1252,6 +1254,34 @@ Functions

Referenced by diaspora_decode().

+ + + +
+
+
diaspora_unshare (  $me, $owner,
 
 diaspora_post ($importer, $xml, $msg)
 
 get_diaspora_reshare_xml ($url, $recurse=0)
 
 diaspora_reshare ($importer, $xml, $msg)
 
 diaspora_asphoto ($importer, $xml, $msg)
+ + + + + + + + + + + + + + + + + +
get_diaspora_reshare_xml ( $url,
 $recurse = 0 
)
+
+ +

Referenced by diaspora_reshare().

+
-- cgit v1.2.3