diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-11 20:51:15 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-11 20:51:15 -0800 |
commit | 6e04dd96a1ff001f67db59e796b36cba30e4fdb4 (patch) | |
tree | e817cf9046f342c535f0842b5df445b04ec32727 | |
parent | f7c837aad0ac08bdc8cc4f8a770c973dda641a28 (diff) | |
download | volse-hubzilla-6e04dd96a1ff001f67db59e796b36cba30e4fdb4.tar.gz volse-hubzilla-6e04dd96a1ff001f67db59e796b36cba30e4fdb4.tar.bz2 volse-hubzilla-6e04dd96a1ff001f67db59e796b36cba30e4fdb4.zip |
will also need api doco
-rw-r--r-- | doc/api/statuses_update.bb | 23 | ||||
-rw-r--r-- | include/dir_fns.php | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/doc/api/statuses_update.bb b/doc/api/statuses_update.bb new file mode 100644 index 000000000..acad440de --- /dev/null +++ b/doc/api/statuses_update.bb @@ -0,0 +1,23 @@ +[h2]statuses/update[/h2] +Parameters + + title: Title of the status + status: Status in text [or bbcode] format + htmlstatus: Status in HTML format + in_reply_to_status_id + lat: latitude + long: longitude + media: image data + source: Application name + group_allow + contact_allow + group_deny + contact_deny + + +Example + +[code] +curl -u theUsername:thePassword http://mywebsite/api/statuses/update.xml -d status='Hello world' +[/code] + diff --git a/include/dir_fns.php b/include/dir_fns.php index 398f43d00..b9f221bd1 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -18,7 +18,7 @@ function find_upstream_directory($dirmode) { // Thwart attempts to use a private directory - if(($preferred) && ($prefered != z_root())) { + if(($preferred) && ($preferred != z_root())) { $r = q("select * from site where site_url = '%s' limit 1", dbesc($preferred) ); |