From 986a32223177a759b0ef071822d227011ee1b3c7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 7 Mar 2009 09:43:50 -0800 Subject: Limit duplicate notices in a particular time period (default 60s) We disallow posting a notice with duplicate content more than once a minute. Conflicts: config.php.sample --- README | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README') diff --git a/README b/README index 388d67ed2..ec2e2ec4f 100644 --- a/README +++ b/README @@ -879,6 +879,8 @@ notice: A plain string that will appear on every page. A good place to put introductory information about your service, or info about upgrades and outages, or other community info. Any HTML will be escaped. +dupelimit: Time in which it's not OK for the same person to post the + same notice; default = 60 seconds. db -- -- cgit v1.2.3-54-g00ecf From a89d7ceab0baeeaa4cc69684ae4c342a63814e2f Mon Sep 17 00:00:00 2001 From: CiaranG Date: Sun, 8 Mar 2009 11:58:27 +0000 Subject: PostgreSQL - added equivalent of the MySQL-specific rebuilddb.sh script, for upgrading --- README | 23 +++++++++++++---------- scripts/rebuilddb_psql.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 10 deletions(-) create mode 100755 scripts/rebuilddb_psql.sh (limited to 'README') diff --git a/README b/README index ec2e2ec4f..07957c09e 100644 --- a/README +++ b/README @@ -745,16 +745,19 @@ to the end first before trying them. directory to your new directory. 9. Copy htaccess.sample to .htaccess in the new directory. Change the RewriteBase to use the correct path. -10. Rebuild the database. Go to your Laconica directory and run the - rebuilddb.sh script like this: - - ./scripts/rebuilddb.sh rootuser rootpassword database db/laconica.sql - - Here, rootuser and rootpassword are the username and password for a - user who can drop and create databases as well as tables; typically - that's _not_ the user Laconica runs as. -11. Use mysql client to log into your database and make sure that the - notice, user, profile, subscription etc. tables are non-empty. +10. Rebuild the database. For MySQL, go to your Laconica directory and + run the rebuilddb.sh script like this: + + ./scripts/rebuilddb.sh rootuser rootpassword database db/laconica.sql + + Here, rootuser and rootpassword are the username and password for a + user who can drop and create databases as well as tables; typically + that's _not_ the user Laconica runs as. + For PostgreSQL databases there is an equivalent, rebuilddb_psql.sh, + which operates slightly differently. Read the documentation in that + script before running it. +11. Use mysql or psql client to log into your database and make sure that + the notice, user, profile, subscription etc. tables are non-empty. 12. Turn back on the Web server, and check that things still work. 13. Turn back on XMPP bots and email maildaemon. Note that the XMPP bots have changed since version 0.5; see above for details. diff --git a/scripts/rebuilddb_psql.sh b/scripts/rebuilddb_psql.sh new file mode 100755 index 000000000..ac169c205 --- /dev/null +++ b/scripts/rebuilddb_psql.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# ******************************* WARNING ********************************* +# Do not run this script until you have read and understood the information +# below, AND backed up your database. Failure to observe these instructions +# may result in losing all the data in your database. +# +# This script is used to upgrade Laconica's PostgreSQL database to the +# latest version. It does the following: +# +# 1. Dumps the existing data to /tmp/rebuilddb_psql.sql +# 2. Clears out the objects (tables, etc) in the database schema +# 3. Reconstructs the database schema using the latest script +# 4. Restores the data dumped in step 1 +# +# You MUST run this script as the 'postgres' user. +# You MUST be able to write to /tmp/rebuilddb_psql.sql +# You MUST specify the laconica database user and database name on the +# command line, e.g. ./rebuilddb_psql.sh myuser mydbname +# + +user=$1 +DB=$2 + +cd `dirname $0` + +pg_dump -a -D --disable-trigger $DB > /tmp/rebuilddb_psql.sql +psql -c "drop schema public cascade; create schema public;" $DB +psql -c "grant all privileges on schema public to $user;" $DB +psql $DB < ../db/laconica_pg.sql +psql $DB < /tmp/rebuilddb_psql.sql +for tab in `psql -c '\dts' $DB -tA | cut -d\| -f2`; do + psql -c "ALTER TABLE \"$tab\" OWNER TO $user;" $DB +done -- cgit v1.2.3-54-g00ecf From 70d5fc46845804507640e354c9d9e06367a53fb0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 11 Mar 2009 16:21:10 -0400 Subject: Document the site-logo configuration option The configuration option for site logo wasn't well documented, so I added it to the README file, config.php.sample, and common.php. --- README | 2 ++ config.php.sample | 3 +++ lib/common.php | 1 + 3 files changed, 6 insertions(+) (limited to 'README') diff --git a/README b/README index 07957c09e..1c2cbe681 100644 --- a/README +++ b/README @@ -884,6 +884,8 @@ notice: A plain string that will appear on every page. A good place be escaped. dupelimit: Time in which it's not OK for the same person to post the same notice; default = 60 seconds. +logo: URL of an image file to use as the logo for the site. Overrides + the logo in the theme, if any. db -- diff --git a/config.php.sample b/config.php.sample index e9052bbf9..529e86f15 100644 --- a/config.php.sample +++ b/config.php.sample @@ -37,6 +37,9 @@ $config['site']['path'] = 'laconica'; # Enables extra log information, for example full details of PEAR DB errors #$config['site']['logdebug'] = true; +#To set your own logo, overriding the one in the theme +#$config['site']['logo'] = '/mylogo.png'; + # This is a PEAR DB DSN, see http://pear.php.net/manual/en/package.database.db.intro-dsn.php # Set it to match your actual database diff --git a/lib/common.php b/lib/common.php index c3d697aee..7739d9475 100644 --- a/lib/common.php +++ b/lib/common.php @@ -73,6 +73,7 @@ $config = 'theme' => 'default', 'path' => $_path, 'logfile' => null, + 'logo' => null, 'logdebug' => false, 'fancy' => false, 'locale_path' => INSTALLDIR.'/locale', -- cgit v1.2.3-54-g00ecf From 254e5e502017dad767a6b57aa2c5c9422d6e02e5 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 11 Mar 2009 22:28:42 -0400 Subject: Update README and version number Update the README and the version number for this release. --- README | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- lib/common.php | 2 +- 2 files changed, 47 insertions(+), 5 deletions(-) (limited to 'README') diff --git a/README b/README index 1c2cbe681..a7798a26a 100644 --- a/README +++ b/README @@ -2,8 +2,8 @@ README ------ -Laconica 0.7.1 ("West of the Fields") -6 February 2009 +Laconica 0.7.2 ("Talk about the Passion") +11 March 2009 This is the README file for Laconica, the Open Source microblogging platform. It includes installation instructions, descriptions of @@ -71,8 +71,47 @@ for additional terms. New this version ================ -This is a minor bug-fix release since version 0.7.0, released Jan 29 -2009. Notable changes this version: +This is a minor bug-fix and feature release since version 0.7.1, +released Feb 9 2009. Notable changes this version: + +- First version of a web-based installer +- Use Net_URL_Mapper instead of mod_rewrite to map "fancy URLs", + for a much simpler installation and use of PATH_INFO on sites + that don't have mod_rewrite. +- A plugin framework for system events, to make it easier to build + server-side plugins. +- A plugin for Google Analytics +- A plugin to use blogspam.net to check notices for spam +- A plugin to send linkbacks for notices about blog posts +- Configurable check for duplicate notices in a specific time + period +- Better Atom feeds +- First implementation of Twitter Search API +- Add streamlined mobile device-friendly styles when enabled in config. +- A queue server for sending notices to Twitter +- A queue server for sending notices to Facebook +- A queue server for sending notices to a ping server +- Fixed a bug in nonces for OAuth in OpenMicroBlogging +- Fixed bugs in transfer of avatars in OpenMicroBlogging +- @-links go to permalinks for local users +- Better handling of DB errors (instead of dreaded DB_DataObject blank + screen) +- Initial version of an RPM spec file +- More consistent display of notices in notice search +- A stylesheet for printed output +- "Social graph" methods for Twitter API +- Documentation for the JavaScript badge +- Debugged a ton of problems that happened with E_NOTICE on +- Better caching in RSS feeds +- Optionally send email when an @-message is received +- Automatically add tags for every group message +- Add framebusting JavaScript to help avoid clickjacking attacks. +- Optionally ignore some notice sources for public page. +- Add default SMS carriers and notice sources to distribution file. +- Change titles to use mixed case instead of all uppercase. +- Use exceptions for error handling. + +Changes in version 0.7.1: - Vast improvement in auto-linking to URLs. - Link to group search from user's group page @@ -1228,6 +1267,9 @@ if anyone's been overlooked in error. * Ken Sheppardson (Trac server, man-about-town) * Tiago 'gouki' Faria (i18n managerx) * Sean Murphy +* Leslie Michael Orchard +* Eric Helgeson +* Ken Sedgwick Thanks also to the developers of our upstream library code and to the thousands of people who have tried out Identi.ca, installed Laconi.ca, diff --git a/lib/common.php b/lib/common.php index 7739d9475..44ed270d7 100644 --- a/lib/common.php +++ b/lib/common.php @@ -19,7 +19,7 @@ if (!defined('LACONICA')) { exit(1); } -define('LACONICA_VERSION', '0.7.1'); +define('LACONICA_VERSION', '0.7.2'); define('AVATAR_PROFILE_SIZE', 96); define('AVATAR_STREAM_SIZE', 48); -- cgit v1.2.3-54-g00ecf