]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.7.x' into 0.8.x
authorSarven Capadisli <csarven@controlyourself.ca>
Fri, 29 May 2009 00:10:23 +0000 (00:10 +0000)
committerSarven Capadisli <csarven@controlyourself.ca>
Fri, 29 May 2009 00:10:23 +0000 (00:10 +0000)
1  2 
README
db/notice_source.sql
lib/common.php

diff --combined README
index 9207f3e900ddfa8251d530ac44e8c7e782fc6b7c,4649eb79ce275b4aa78f9d324af015e846fcee3f..db912f201616bff07dc0807a088111fe48484818
--- 1/README
--- 2/README
+++ b/README
@@@ -176,10 -176,6 +176,10 @@@ and the URLs are listed here for your c
    version may render your Laconica site unable to send or receive XMPP
    messages.
  - Facebook library. Used for the Facebook application.
 +- PEAR Services_oEmbed. Used for some multimedia integration.
 +- PEAR HTTP_Request is an oEmbed dependency.
 +- PEAR Validat is an oEmbed dependency.e
 +- PEAR Net_URL is an oEmbed dependency.2
  
  A design goal of Laconica is that the basic Web functionality should
  work on even the most restrictive commercial hosting services.
@@@ -694,6 -690,13 +694,13 @@@ to users on a remote site. (Or not... i
  Upgrading
  =========
  
+ IMPORTANT NOTE: Laconica 0.7.4 introduced a fix for some
+ incorrectly-stored international characters ("UTF-8"). For new
+ installations, it will now store non-ASCII characters correctly.
+ However, older installations will have the incorrect storage, and will
+ consequently show up "wrong" in browsers. See below for how to deal
+ with this situation.
  If you've been using Laconica 0.6, 0.5 or lower, or if you've been
  tracking the "git" version of the software, you will probably want
  to upgrade and keep your existing data. There is no automated upgrade
@@@ -783,6 -786,29 +790,29 @@@ problem
  3. When fixup_inboxes is finished, you can set the enabled flag to
     'true'.
  
+ UTF-8 Database
+ --------------
+ Laconica 0.7.4 introduced a fix for some incorrectly-stored
+ international characters ("UTF-8"). This fix is not
+ backwards-compatible; installations from before 0.7.4 will show
+ non-ASCII characters of old notices incorrectly. This section explains
+ what to do.
+ 0. You can disable the new behaviour by setting the 'db''utf8' config
+    option to "false". You should only do this until you're ready to
+    convert your DB to the new format.
+ 1. When you're ready to convert, you can run the fixup_utf8.php script
+    in the scripts/ subdirectory. If you've had the "new behaviour"
+    enabled (probably a good idea), you can give the ID of the first
+    "new" notice as a parameter, and only notices before that one will
+    be converted. Notices are converted in reverse chronological order,
+    so the most recent (and visible) ones will be converted first. The
+    script should work whether or not you have the 'db''utf8' config
+    option enabled.
+ 2. When you're ready, set $config['db']['utf8'] to true, so that
+    new notices will be stored correctly.
  Configuration options
  =====================
  
@@@ -910,6 -936,10 +940,10 @@@ mirror: you can set this to an array o
        and adding the slaves to this array. Note that if you want some
        requests to go to the 'database' (master) server, you'll need
        to include it in this array, too.
+ utf8: whether to talk to the database in UTF-8 mode. This is the default
+       with new installations, but older sites may want to turn it off
+       until they get their databases fixed up. See "UTF-8 database"
+       above for details.
  
  syslog
  ------
@@@ -1136,32 -1166,6 +1170,32 @@@ welcome: nickname of a user account tha
  If either of these special user accounts are specified, the users should
  be created before the configuration is updated.
  
 +snapshot
 +--------
 +
 +The software will, by default, send statistical snapshots about the
 +local installation to a stats server on the laconi.ca Web site. This
 +data is used by the developers to prioritize development decisions. No
 +identifying data about users or organizations is collected. The data
 +is available to the public for review. Participating in this survey
 +helps Laconica developers take your needs into account when updating
 +the software.
 +
 +run: string indicating when to run the statistics. Values can be 'web'
 +     (run occasionally at Web time), 'cron' (run from a cron script),
 +     or 'never' (don't ever run). If you set it to 'cron', remember to
 +     schedule the script to run on a regular basis.
 +frequency: if run value is 'web', how often to report statistics.
 +           Measured in Web hits; depends on how active your site is.
 +           Default is 10000 -- that is, one report every 10000 Web hits,
 +           on average.
 +reporturl: URL to post statistics to. Defaults to Laconica developers'
 +           report system, but if they go evil or disappear you may
 +           need to update this to another value. Note: if you
 +           don't want to report stats, it's much better to
 +           set 'run' to 'never' than to set this value to something
 +           nonsensical.
 +
  Troubleshooting
  ===============
  
diff --combined db/notice_source.sql
index 1508af1ec882d4863bdfb7a211db80e63b2349cd,ac73d3d13bdbadc51e58199664615ad7b733fd39..d5a280b82cedd18f9ba0df4107b7277c18a4394c
@@@ -2,6 -2,7 +2,7 @@@ INSERT INTO notice_sourc
      (code, name, url, created)
  VALUES
      ('adium', 'Adium', 'http://www.adiumx.com/', now()),
+     ('AgentSolo.com','AgentSolo.com','http://www.agentsolo.com/', now()),
      ('betwittered','BeTwittered','http://www.32hours.com/betwitteredinfo/', now()),
      ('bti','bti','http://gregkh.github.com/bti/', now()),
      ('cliqset', 'Cliqset', 'http://www.cliqset.com/', now()),
@@@ -29,6 -30,7 +30,7 @@@
      ('pingvine','PingVine','http://pingvine.com/', now()),
      ('pocketwit','PockeTwit','http://code.google.com/p/pocketwit/', now()),
      ('posty','Posty','http://spreadingfunkyness.com/posty/', now()),
+     ('qtwitter','qTwitter','http://qtwitter.ayoy.net/', now()),
      ('royalewithcheese','Royale With Cheese','http://p.hellyeah.org/', now()),
      ('rssdent','rssdent','http://github.com/zcopley/rssdent/tree/master', now()),
      ('rygh.no','rygh.no','http://rygh.no/', now()),
@@@ -46,7 -48,6 +48,7 @@@
      ('twidge','Twidge','http://software.complete.org/twidge', now()),
      ('twidroid','twidroid','http://www.twidroid.com/', now()),
      ('twittelator','Twittelator','http://www.stone.com/iPhone/Twittelator/', now()),
 +    ('twitter','Twitter','http://twitter.com/', now()),
      ('twitterfeed','twitterfeed','http://twitterfeed.com/', now()),
      ('twitterphoto','TwitterPhoto','http://richfish.org/twitterphoto/', now()),
      ('twitterpm','Net::Twitter','http://search.cpan.org/dist/Net-Twitter/', now()),
diff --combined lib/common.php
index 0ce46442deb99e3d928aed6bfa16c96b1a488401,8f95c236158c7e1e9305ea7d8339e8406dbf51c8..4a98741e8e773e8377453a46ffa55eb7c2311b49
@@@ -19,7 -19,7 +19,7 @@@
  
  if (!defined('LACONICA')) { exit(1); }
  
 -define('LACONICA_VERSION', '0.7.3');
 +define('LACONICA_VERSION', '0.8.0dev');
  
  define('AVATAR_PROFILE_SIZE', 96);
  define('AVATAR_STREAM_SIZE', 48);
@@@ -71,7 -71,6 +71,7 @@@ $config 
          array('name' => 'Just another Laconica microblog',
                'server' => $_server,
                'theme' => 'default',
 +              'skin' => 'default',
                'path' => $_path,
                'logfile' => null,
                'logo' => null,
          array('piddir' => '/var/run',
                'user' => false,
                'group' => false),
 +        'twitterbridge' =>
 +        array('enabled' => false),
          'integration' =>
          array('source' => 'Laconica', # source attribute for Twitter
                'taguri' => $_server.',2009'), # base for tag URIs
          'newuser' =>
          array('subscribe' => null,
                'welcome' => null),
 +        'snapshot' =>
 +        array('run' => 'web',
 +              'frequency' => 10000,
 +              'reporturl' => 'http://laconi.ca/stats/report'),
          );
  
  $config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');
@@@ -174,6 -167,7 +174,7 @@@ $config['db'] 
          'require_prefix' => 'classes/',
          'class_prefix' => '',
          'mirror' => null,
+         'utf8' => true,
          'db_driver' => 'DB', # XXX: JanRain libs only work with DB
          'quote_identifiers' => false,
          'type' => 'mysql' );