diff options
author | Evan Prodromou <evan@status.net> | 2010-01-06 23:23:30 -0800 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-06 23:23:30 -0800 |
commit | a55939f3b1540cf86b6edcf4f0c8ff79fb5f6a20 (patch) | |
tree | b8ed9dc90ba728e36ca3ca77bed71f45a77d6dd4 /lib | |
parent | e1c7851a067d4d8201126816884b9992720010f5 (diff) | |
parent | 5d13126c88a8143a1628cc52c2dae4581f134273 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib')
-rw-r--r-- | lib/command.php | 74 | ||||
-rw-r--r-- | lib/htmloutputter.php | 2 | ||||
-rw-r--r-- | lib/jsonsearchresultslist.php | 10 | ||||
-rw-r--r-- | lib/schema.php | 4 |
4 files changed, 50 insertions, 40 deletions
diff --git a/lib/command.php b/lib/command.php index 67140c348..ad2e0bb97 100644 --- a/lib/command.php +++ b/lib/command.php @@ -742,42 +742,42 @@ class HelpCommand extends Command function execute($channel) { $channel->output($this->user, - _("Commands:\n". - "on - turn on notifications\n". - "off - turn off notifications\n". - "help - show this help\n". - "follow <nickname> - subscribe to user\n". - "groups - lists the groups you have joined\n". - "subscriptions - list the people you follow\n". - "subscribers - list the people that follow you\n". - "leave <nickname> - unsubscribe from user\n". - "d <nickname> <text> - direct message to user\n". - "get <nickname> - get last notice from user\n". - "whois <nickname> - get profile info on user\n". - "fav <nickname> - add user's last notice as a 'fave'\n". - "fav #<notice_id> - add notice with the given id as a 'fave'\n". - "repeat #<notice_id> - repeat a notice with a given id\n". - "repeat <nickname> - repeat the last notice from user\n". - "reply #<notice_id> - reply to notice with a given id\n". - "reply <nickname> - reply to the last notice from user\n". - "join <group> - join group\n". - "login - Get a link to login to the web interface\n". - "drop <group> - leave group\n". - "stats - get your stats\n". - "stop - same as 'off'\n". - "quit - same as 'off'\n". - "sub <nickname> - same as 'follow'\n". - "unsub <nickname> - same as 'leave'\n". - "last <nickname> - same as 'get'\n". - "on <nickname> - not yet implemented.\n". - "off <nickname> - not yet implemented.\n". - "nudge <nickname> - remind a user to update.\n". - "invite <phone number> - not yet implemented.\n". - "track <word> - not yet implemented.\n". - "untrack <word> - not yet implemented.\n". - "track off - not yet implemented.\n". - "untrack all - not yet implemented.\n". - "tracks - not yet implemented.\n". - "tracking - not yet implemented.\n")); + _("Commands:")."\n". + _("on - turn on notifications")."\n". + _("off - turn off notifications")."\n". + _("help - show this help")."\n". + _("follow <nickname> - subscribe to user")."\n". + _("groups - lists the groups you have joined")."\n". + _("subscriptions - list the people you follow")."\n". + _("subscribers - list the people that follow you")."\n". + _("leave <nickname> - unsubscribe from user")."\n". + _("d <nickname> <text> - direct message to user")."\n". + _("get <nickname> - get last notice from user")."\n". + _("whois <nickname> - get profile info on user")."\n". + _("fav <nickname> - add user's last notice as a 'fave'")."\n". + _("fav #<notice_id> - add notice with the given id as a 'fave'")."\n". + _("repeat #<notice_id> - repeat a notice with a given id")."\n". + _("repeat <nickname> - repeat the last notice from user")."\n". + _("reply #<notice_id> - reply to notice with a given id")."\n". + _("reply <nickname> - reply to the last notice from user")."\n". + _("join <group> - join group")."\n". + #_("login - Get a link to login to the web interface")."\n". + _("drop <group> - leave group")."\n". + _("stats - get your stats")."\n". + _("stop - same as 'off'")."\n". + _("quit - same as 'off'")."\n". + _("sub <nickname> - same as 'follow'")."\n". + _("unsub <nickname> - same as 'leave'")."\n". + _("last <nickname> - same as 'get'")."\n". + #_("on <nickname> - not yet implemented.")."\n". + #_("off <nickname> - not yet implemented.")."\n". + _("nudge <nickname> - remind a user to update.")."\n"); + #_("invite <phone number> - not yet implemented.")."\n". + #_("track <word> - not yet implemented.")."\n". + #_("untrack <word> - not yet implemented.")."\n". + #_("track off - not yet implemented.")."\n". + #_("untrack all - not yet implemented.")."\n". + #_("tracks - not yet implemented.")."\n". + #_("tracking - not yet implemented.")."\n" } } diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 2091c6e2c..31660ce95 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -352,7 +352,7 @@ class HTMLOutputter extends XMLOutputter { if(Event::handle('StartScriptElement', array($this,&$src,&$type))) { $url = parse_url($src); - if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment)) + if( empty($url['scheme']) && empty($url['host']) && empty($url['query']) && empty($url['fragment'])) { $src = common_path($src) . '?version=' . STATUSNET_VERSION; } diff --git a/lib/jsonsearchresultslist.php b/lib/jsonsearchresultslist.php index 569bfa873..0d72ddf7a 100644 --- a/lib/jsonsearchresultslist.php +++ b/lib/jsonsearchresultslist.php @@ -105,8 +105,14 @@ class JSONSearchResultsList break; } - $item = new ResultItem($this->notice); - array_push($this->results, $item); + $profile = $this->notice->getProfile(); + + // Don't show notices from deleted users + + if (!empty($profile)) { + $item = new ResultItem($this->notice); + array_push($this->results, $item); + } } $time_end = microtime(true); diff --git a/lib/schema.php b/lib/schema.php index 6fe442d56..a7f64ebed 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -528,6 +528,10 @@ class Schema $sql .= " auto_increment "; } + if (!empty($cd->extra)) { + $sql .= "{$cd->extra} "; + } + return $sql; } } |