]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.9.x' into finish-account-api
authorZach Copley <zach@status.net>
Tue, 10 Nov 2009 08:43:58 +0000 (00:43 -0800)
committerZach Copley <zach@status.net>
Tue, 10 Nov 2009 08:43:58 +0000 (00:43 -0800)
* 0.9.x: (26 commits)
  just sent a http 200 for the check-fancy from install.php
  Add a new event: CanUserChangeField
  shorten flag notification and include a class
  Added flag icon for UserFlag plugin
  Fixed notice option alignment in IE
  add a method to Theme class to list available themes
  Updated Realtime plugin to use the util's NoticeReply object
  Localisation updates from translatewiki.net (2009-11-08)
  Update pot again
  Rebuild pot file *without* --join-existing to get rid of the cruft. Not sure why "--join-existing" must be in. Only thing I can think of is manual additions, which I could not find.
  Revert "More precise field label"
  Remove more contractions
  Revert "* [Cc]an't -> [Cc]annot"
  Revert "More specifics on 'address'"
  * [Cc]an't -> [Cc]annot
  Revert "* check usage of 'people' in UI and change it to 'users' or something else in most places"
  add utilities for calculating local and installation theme root dirs
  Harmonise UI message "No such user."
  Restructure theme.php to define a class Theme
  entity_action responses look more inactive now
  ...

1  2 
actions/apiaccountratelimitstatus.php
lib/api.php

index 1a5afd552c90d8c1d43b6ecdb0cd257dfd40d356,c7c0e7c00187bed6ffa4b2e6a00642a296d080bc..dd3fe312c9bd53fd5b8c4db638c19d81009d5a79
@@@ -36,7 -36,7 +36,7 @@@ if (!defined('STATUSNET')) 
  require_once INSTALLDIR . '/lib/apibareauth.php';
  
  /**
-  * We don't have a rate limit, but some clients check this method.
+  * We do not have a rate limit, but some clients check this method.
   * It always returns the same thing: 150 hits left.
   *
   * @category API
@@@ -67,7 -67,7 +67,7 @@@ class ApiAccountRateLimitStatusAction e
  
          if (!in_array($this->format, array('xml', 'json'))) {
              $this->clientError(
 -                _('API method not found!'),
 +                _('API method not found.'),
                  404,
                  $this->format
              );
diff --combined lib/api.php
index 45762ef0d385175e99aa96be1c42a84e970e43be,fb4c4289b4f0303d5bb84935553434c3ff02c7be..5da9d4982507a9e2fad590590a9e9a420b21762c
@@@ -66,7 -66,7 +66,7 @@@ class ApiAction extends Actio
       *
       * @param array $args Web and URL arguments
       *
-      * @return boolean false if user doesn't exist
+      * @return boolean false if user does not exist
       */
  
      function prepare($args)
          $design        = null;
          $user          = $profile->getUser();
  
-         // Note: some profiles don't have an associated user
+         // Note: some profiles do not have an associated user
  
          if (!empty($user)) {
              $design = $user->getDesign();
          $twitter_user['utc_offset'] = $t->format('Z');
          $twitter_user['time_zone'] = $timezone;
  
 -        // To be supported some day, perhaps
 -        $twitter_user['profile_background_image_url'] = '';
 -        $twitter_user['profile_background_tile'] = false;
 +        $twitter_user['profile_background_image_url']
 +            = empty($design->backgroundimage)
 +            ? '' : ($design->disposition & BACKGROUND_ON)
 +            ? Design::url($design->backgroundimage) : '';
 +
 +        $twitter_user['profile_background_tile']
 +            = empty($design->disposition)
 +            ? '' : ($design->disposition & BACKGROUND_TILE) ? 'true' : 'false';
  
          $twitter_user['statuses_count'] = $profile->noticeCount();
  
          if ($get_notice) {
              $notice = $profile->getCurrentNotice();
              if ($notice) {
-                 # don't get user!
+                 # do not get user!
                  $twitter_user['status'] = $this->twitterStatusArray($notice, false);
              }
          }
          }
  
          if ($include_user) {
-             # Don't get notice (recursive!)
+             # Do not get notice (recursive!)
              $twitter_user = $this->twitterUserArray($profile, false);
              $twitter_status['user'] = $twitter_user;
          }
      function initTwitterAtom()
      {
          $this->startXML();
-         // FIXME: don't hardcode the language here!
+         // FIXME: do not hardcode the language here!
          $this->elementStart('feed', array('xmlns' => 'http://www.w3.org/2005/Atom',
                                            'xml:lang' => 'en-US',
                                            'xmlns:thr' => 'http://purl.org/syndication/thread/1.0'));
                  return User::staticGet('nickname', $nickname);
              } else if ($this->arg('user_id')) {
                  // This is to ensure that a non-numeric user_id still
-                 // overrides screen_name even if it doesn't get used
+                 // overrides screen_name even if it does not get used
                  if (is_numeric($this->arg('user_id'))) {
                      return User::staticGet('id', $this->arg('user_id'));
                  }
                  return User_group::staticGet('nickname', $nickname);
              } else if ($this->arg('group_id')) {
                  // This is to ensure that a non-numeric user_id still
-                 // overrides screen_name even if it doesn't get used
+                 // overrides screen_name even if it does not get used
                  if (is_numeric($this->arg('group_id'))) {
                      return User_group::staticGet('id', $this->arg('group_id'));
                  }