will also need api doco

This commit is contained in:
redmatrix 2015-11-11 20:51:15 -08:00
parent f7c837aad0
commit 6e04dd96a1
2 changed files with 24 additions and 1 deletions

View File

@ -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]

View File

@ -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)
);