]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.9-release'
authorZach Copley <zach@status.net>
Fri, 20 Nov 2009 04:12:46 +0000 (20:12 -0800)
committerZach Copley <zach@status.net>
Fri, 20 Nov 2009 04:12:46 +0000 (20:12 -0800)
* 0.9-release: (874 commits)
  Removed call to NewDirectMessage() until IE return is fixed i.e.,
  Don't show flag user button your own profile
  Fixed HXR response for flag user
  Using the right form class name
  Using common_redirect
  Left a form_data class of a <ul> in the user admin panel
  Added validation to fields in user admin panel
  Added a user admin panel
  Added mobile logos for default and identica themes
  Changed gif to png
  Changed this to action. THANKS zach!
  Doing content negotiation only once
  Add execute bit to pingqueuehandler
  Localisation updates for !StatusNet from !translatewiki.net
  Use the browser's geolocation API to set the location on the notice form
  Add geometa library, and include it.
  Add location form elements to the noticeform, and save their values on submission
  Use the $user object nickname, as login name doesnt have to == nickname anymore with plugins such as ldap/etc
  Revert "Re added NICKNAME_FMT constant to router.php."
  Moved most path and server settings to a new paths admin panel
  ...

Conflicts:
js/util.js
locale/it_IT/LC_MESSAGES/statusnet.mo
locale/mk_MK/LC_MESSAGES/statusnet.mo
locale/mk_MK/LC_MESSAGES/statusnet.po
locale/pt_BR/LC_MESSAGES/statusnet.mo
locale/vi_VN/LC_MESSAGES/statusnet.mo
plugins/InfiniteScroll/infinitescroll.js
plugins/Realtime/realtimeupdate.js

1  2 
locale/pt_BR/LC_MESSAGES/statusnet.mo
plugins/InfiniteScroll/infinitescroll.js
plugins/Realtime/RealtimePlugin.php

index a5a6f27253deb1e043df8a2d6f0aee6ef1d087e0,fcec3270e9e53e28edb1e0c64f09a100415ed467..cdad8cc6cd277d5968a46f613369aaa89314f560
Binary files differ
index 9e5593d257cfd3d769f0d76ff4e29959714f011d,0dafef6d52f2bf68ba08f672c94b20b2cd62f132..0c8edce2b09a9035f720925276621e0677fc2f4a
@@@ -1,6 -1,6 +1,6 @@@
  jQuery(document).ready(function($){
    $('notices_primary').infinitescroll({
 -    debug: true,
 +    debug: false,
      infiniteScroll  : false,
      nextSelector    : 'body#public li.nav_next a,'+
                        'body#all li.nav_next a,'+
      loadingImg      : $('address .url')[0].href+'plugins/InfiniteScroll/ajax-loader.gif',
      text            : "<em>Loading the next set of posts...</em>",
      donetext        : "<em>Congratulations, you\'ve reached the end of the Internet.</em>",
-     navSelector     : "div.pagination",
+     navSelector     : ".pagination",
      contentSelector : "#notices_primary ol.notices",
      itemSelector    : "#notices_primary ol.notices li"
      },function(){
-         NoticeAttachments();
-         NoticeReply();
-         NoticeFavors();
+         SN.Init.Notices();
      });
  });
index a21c33b103ef3546ceca40f79ef046cb7a7ab4df,c5fb6de038fa7cc83a9f6a367a9c53b01261e914..198cb5ad71395827057ec44e46ac9e7b8d7491e3
@@@ -101,8 -101,8 +101,8 @@@ class RealtimePlugin extends Plugi
              $realtimeUI = ' RealtimeUpdate.initPopupWindow();';
          }
          else {
-             $iconurl = common_path('plugins/Realtime/icon_external.gif');
-             $realtimeUI = ' RealtimeUpdate.addPopup("'.$url.'", "'.$timeline.'", "'. $iconurl .'");';
+             $pluginPath = common_path('plugins/Realtime/');
+             $realtimeUI = ' RealtimeUpdate.initActions("'.$url.'", "'.$timeline.'", "'. $pluginPath .'");';
          }
  
          $action->elementStart('script', array('type' => 'text/javascript'));
          return true;
      }
  
-     function onEndNoticeSave($notice)
+     function onEndShowStatusNetStyles($action)
+     {
+         $action->cssLink(common_path('plugins/Realtime/realtimeupdate.css'), 
+                          null, 'screen, projection, tv');
+         return true;
+     }
+     function onHandleQueuedNotice($notice)
      {
          $paths = array();
  
  
          // Add to the public timeline
  
 -        if ($notice->is_local ||
 -            ($notice->is_local == 0 && !common_config('public', 'localonly'))) {
 +        if ($notice->is_local == Notice::LOCAL_PUBLIC ||
 +            ($notice->is_local == Notice::REMOTE_OMB && !common_config('public', 'localonly'))) {
              $paths[] = array('public');
          }
  
          }
  
          $action->showContentBlock();
 -        $action->showScripts();
          $action->elementEnd('body');
          return false; // No default processing
      }
          // FIXME: this code should be abstracted to a neutral third
          // party, like Notice::asJson(). I'm not sure of the ethics
          // of refactoring from within a plugin, so I'm just abusing
 -        // the ApiAction method. Don't do this unless you're me!
 +        // the TwitterApiAction method. Don't do this unless you're me!
  
 -        require_once(INSTALLDIR.'/lib/api.php');
 +        require_once(INSTALLDIR.'/lib/twitterapi.php');
  
 -        $act = new ApiAction('/dev/null');
 +        $act = new TwitterApiAction('/dev/null');
  
 -        $arr = $act->twitterStatusArray($notice, true);
 +        $arr = $act->twitter_status_array($notice, true);
          $arr['url'] = $notice->bestUrl();
          $arr['html'] = htmlspecialchars($notice->rendered);
          $arr['source'] = htmlspecialchars($arr['source']);