]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
14 years agoAvoid notices for accessing undefined array indices in hcard processing
Brion Vibber [Fri, 19 Mar 2010 22:54:16 +0000 (15:54 -0700)]
Avoid notices for accessing undefined array indices in hcard processing

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Fri, 19 Mar 2010 22:51:22 +0000 (15:51 -0700)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x

Conflicts:
plugins/OStatus/extlib/hkit/hkit.class.php
plugins/OStatus/lib/discoveryhints.php

14 years agoOStatus: be a little laxer about attempts to start/stop PuSH subscriptions that were...
Brion Vibber [Fri, 19 Mar 2010 22:47:43 +0000 (15:47 -0700)]
OStatus: be a little laxer about attempts to start/stop PuSH subscriptions that were left in an inconsistent state.
Instead of aborting, we'll try to reconfirm the sub/unsub, which once confirmed will replace whatever the previous state was on the server side.

14 years agoMerge branch 'master' of git@gitorious.org:statusnet/mainline into testing
Brion Vibber [Fri, 19 Mar 2010 22:29:00 +0000 (15:29 -0700)]
Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing

14 years agoMerge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Sarven Capadisli [Fri, 19 Mar 2010 21:27:27 +0000 (22:27 +0100)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x

14 years agoRemoved box-shadow and outline on notice more link focus
Sarven Capadisli [Fri, 19 Mar 2010 21:26:50 +0000 (22:26 +0100)]
Removed box-shadow and outline on notice more link focus

14 years agomove ActivityObject constructors from Activity to ActivityObject
Evan Prodromou [Fri, 19 Mar 2010 20:41:48 +0000 (15:41 -0500)]
move ActivityObject constructors from Activity to ActivityObject

14 years agoonly search elements for links
Evan Prodromou [Fri, 19 Mar 2010 20:28:25 +0000 (15:28 -0500)]
only search elements for links

14 years agoreturn empty hints if no hcard in the html
Evan Prodromou [Fri, 19 Mar 2010 20:28:06 +0000 (15:28 -0500)]
return empty hints if no hcard in the html

14 years agodefine a 'root' attribute for the channel or feed
Evan Prodromou [Fri, 19 Mar 2010 20:23:30 +0000 (15:23 -0500)]
define a 'root' attribute for the channel or feed

14 years agoFix typo in public tag cloud query setup which caused the cutoff to get skipped.
Brion Vibber [Fri, 19 Mar 2010 19:50:34 +0000 (12:50 -0700)]
Fix typo in public tag cloud query setup which caused the cutoff to get skipped.

14 years agoFix typo in public tag cloud query setup which caused the cutoff to get skipped.
Brion Vibber [Fri, 19 Mar 2010 19:50:34 +0000 (12:50 -0700)]
Fix typo in public tag cloud query setup which caused the cutoff to get skipped.

14 years agoThrow an exception when an undefined method is called on one of our DB_DataObjects...
Brion Vibber [Fri, 19 Mar 2010 19:38:14 +0000 (12:38 -0700)]
Throw an exception when an undefined method is called on one of our DB_DataObjects, instead of failing silently.
The magic __call() method is used to implement a getter and setter interface, and simply didn't bother to throw an error for things it didn't recognize.

This may expose a number of existing errors where mistyped method names are called and we're not noticing that they're failing.

14 years agoDrop result ID from data objects on clone(). This keeps the original object working...
Brion Vibber [Mon, 15 Mar 2010 22:41:57 +0000 (15:41 -0700)]
Drop result ID from data objects on clone(). This keeps the original object working if it was in the middle of a query loop, even if the cloned object falls out of scope and triggers its destructor.
This bug was hitting a number of places where we had the pattern:

$db->find();
while($dbo->fetch()) {
  $x = clone($dbo);
  // do anything with $x other than storing it in an array
}

The cloned object's destructor would trigger on the second run through the loop, freeing the database result set -- not really what we wanted.
(Loops that stored the clones into an array were fine, since the clones stay in scope in the array longer than the original does.)

Detaching the database result from the clone lets us work with its data without interfering with the rest of the query.
In the unlikely even that somebody is making clones in the middle of a query, then trying to continue the query with the clone instead of the original object, well they're gonna be broken now.

14 years agoclarify output on fixup-shadow.php
Brion Vibber [Fri, 19 Mar 2010 18:17:56 +0000 (11:17 -0700)]
clarify output on fixup-shadow.php

14 years agoUsing opacity on the notice more link icon
Sarven Capadisli [Fri, 19 Mar 2010 18:06:54 +0000 (19:06 +0100)]
Using opacity on the notice more link icon

14 years agoMerge branch 'testing' of gitorious.org:statusnet/mainline into testing
Zach Copley [Fri, 19 Mar 2010 17:38:54 +0000 (10:38 -0700)]
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing

* 'testing' of gitorious.org:statusnet/mainline:
  Validate OStatus avatar URL before fetching.

14 years agoMinor margin to more link
Sarven Capadisli [Fri, 19 Mar 2010 17:35:40 +0000 (18:35 +0100)]
Minor margin to more link

14 years agoAllow admins to set a min site textlimit of 0 (unlimited)
Zach Copley [Fri, 19 Mar 2010 17:30:04 +0000 (10:30 -0700)]
Allow admins to set a min site textlimit of 0 (unlimited)

14 years agoMerge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Fri, 19 Mar 2010 17:27:47 +0000 (10:27 -0700)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x

14 years agoMerge branch 'ostatus-crop' of git@gitorious.org:~brion/statusnet/brion-fixes into...
Brion Vibber [Fri, 19 Mar 2010 17:27:03 +0000 (10:27 -0700)]
Merge branch 'ostatus-crop' of git@gitorious.org:~brion/statusnet/brion-fixes into 0.9.x

14 years agoValidate OStatus avatar URL before fetching.
Brion Vibber [Fri, 19 Mar 2010 17:15:00 +0000 (10:15 -0700)]
Validate OStatus avatar URL before fetching.

14 years agoValidate OStatus avatar URL before fetching.
Brion Vibber [Fri, 19 Mar 2010 17:15:00 +0000 (10:15 -0700)]
Validate OStatus avatar URL before fetching.

14 years agoMerge branch 'testing' of gitorious.org:statusnet/mainline into testing
Zach Copley [Fri, 19 Mar 2010 17:08:47 +0000 (10:08 -0700)]
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing

* 'testing' of gitorious.org:statusnet/mainline:
  Parse RSS items as activities
  Remove hkit and do our own hcard parsing
  Work around weird bug with HTML normalization via PHP DOM module; if source had xmlns and xml:lang I ended up with double output, breaking the subsequent parsing. Will have to track this down later and report upstream if not already resolved.

14 years agoParse RSS items as activities
Evan Prodromou [Fri, 19 Mar 2010 14:48:39 +0000 (09:48 -0500)]
Parse RSS items as activities

First steps to parsing RSS items as activities. RSS feeds don't seem
to have enough data to make good remote profiles, but this may work
with some "hints".

14 years agoUpdated biz theme logo
Sarven Capadisli [Fri, 19 Mar 2010 09:06:06 +0000 (10:06 +0100)]
Updated biz theme logo

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Evan Prodromou [Fri, 19 Mar 2010 01:57:38 +0000 (20:57 -0500)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing

Conflicts:
plugins/OStatus/extlib/hkit/hkit.class.php
plugins/OStatus/lib/discoveryhints.php

14 years agoRemove hkit and do our own hcard parsing
Evan Prodromou [Fri, 19 Mar 2010 01:52:00 +0000 (20:52 -0500)]
Remove hkit and do our own hcard parsing

Parsing hcards for the data we need wasn't hard enough to justify using
hkit. It was dependent on a number of external systems (something to
run tidy), and only could handle XHTML.

We now parse HTML with the PHP dom libraries used elsewhere, and
scrape out our own hcards. Seems to work nicer and faster and most of
all works with Google Buzz profile URLs.

14 years agoWork around weird bug with HTML normalization via PHP DOM module; if source had xmlns...
Brion Vibber [Fri, 19 Mar 2010 00:55:21 +0000 (17:55 -0700)]
Work around weird bug with HTML normalization via PHP DOM module; if source had xmlns and xml:lang I ended up with double output, breaking the subsequent parsing. Will have to track this down later and report upstream if not already resolved.

14 years agoWork around weird bug with HTML normalization via PHP DOM module; if source had xmlns...
Brion Vibber [Fri, 19 Mar 2010 00:55:21 +0000 (17:55 -0700)]
Work around weird bug with HTML normalization via PHP DOM module; if source had xmlns and xml:lang I ended up with double output, breaking the subsequent parsing. Will have to track this down later and report upstream if not already resolved.

14 years agoMerge branch 'testing' of gitorious.org:statusnet/mainline into testing
Zach Copley [Fri, 19 Mar 2010 00:20:09 +0000 (17:20 -0700)]
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing

* 'testing' of gitorious.org:statusnet/mainline:
  Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Fri, 19 Mar 2010 00:19:28 +0000 (17:19 -0700)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x

14 years agoHandle "forgot to upload an avatar on avatarsettings" a little more gracefully.
Brion Vibber [Fri, 19 Mar 2010 00:18:01 +0000 (17:18 -0700)]
Handle "forgot to upload an avatar on avatarsettings" a little more gracefully.

14 years agoMerge branch 'testing' of gitorious.org:statusnet/mainline into testing
Zach Copley [Fri, 19 Mar 2010 00:11:06 +0000 (17:11 -0700)]
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing

* 'testing' of gitorious.org:statusnet/mainline:
  OStatus discover fixes:
  Remove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing warnings)
  Fix notice warning about unused var -- was renamed during refactoring.

14 years agoOStatus discover fixes:
Brion Vibber [Fri, 19 Mar 2010 00:08:19 +0000 (17:08 -0700)]
OStatus discover fixes:
* Subscription::start was sometimes passing users instead of profiles to hooks, which broke OStatus subscription notifications; now normalizing to profiles for processing.
* H-card parsing would trigger a lot of PHP warnings and notices in hKit. Now suppressing warnings and notices for the duration of the call to keep them out of output when display_errors is on.
* H-card parsing would trigger a PHP fatal error if the source page was not well-formed XML and Tidy was not present on the system. Switched normalization to use the PHP DOM module which is always present, as we have no need for Tidy's extra features here.
* Trying to fetch avatars from Google profiles failed and triggered a PHP warning due to the relative URL not being resolved during h-card parsing. Now passing profile page URL into hKit by sneaking a <base> tag in while we normalize the HTML source.
* Profile pages without a "Link" header could trigger PHP notices due to a bad NULL -> array(NULL) conversion in LinkHeader::getLink(). Now checking that there was a return value before converting single return value into array.

14 years agoMinor syntax err in TwitterBridge README example
Zach Copley [Fri, 19 Mar 2010 00:00:37 +0000 (17:00 -0700)]
Minor syntax err in TwitterBridge README example

14 years agoRemove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing...
Craig Andrews [Thu, 18 Mar 2010 22:13:54 +0000 (18:13 -0400)]
Remove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing warnings)
Remove erroneous call to unlink in the constructor

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Brion Vibber [Thu, 18 Mar 2010 22:39:04 +0000 (15:39 -0700)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing

14 years agoMerge branch 'testing' of gitorious.org:statusnet/mainline into testing
Zach Copley [Thu, 18 Mar 2010 22:28:21 +0000 (15:28 -0700)]
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing

* 'testing' of gitorious.org:statusnet/mainline:
  Fix for xmpp/sms notification options appearing to be disabled on new subscriptions.

14 years agoAPI - handle any exceptions thrown during notice save. The API was
Zach Copley [Thu, 18 Mar 2010 22:26:13 +0000 (15:26 -0700)]
API - handle any exceptions thrown during notice save.  The API was
occasionally spitting out HTML, which is hard for clients to deal
with.

14 years agoRemove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing...
Craig Andrews [Thu, 18 Mar 2010 22:13:54 +0000 (18:13 -0400)]
Remove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, causing warnings)
Remove erroneous call to unlink in the constructor

14 years agoFix notice warning about unused var -- was renamed during refactoring.
Brion Vibber [Thu, 18 Mar 2010 22:11:25 +0000 (15:11 -0700)]
Fix notice warning about unused var -- was renamed during refactoring.

14 years agoAdded processing indicator for more anchor
Sarven Capadisli [Thu, 18 Mar 2010 22:00:38 +0000 (23:00 +0100)]
Added processing indicator for more anchor

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Brion Vibber [Thu, 18 Mar 2010 21:33:45 +0000 (14:33 -0700)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing

14 years agoFix for xmpp/sms notification options appearing to be disabled on new subscriptions.
Brion Vibber [Thu, 18 Mar 2010 21:26:32 +0000 (14:26 -0700)]
Fix for xmpp/sms notification options appearing to be disabled on new subscriptions.
Base problem is that our caching-on-insert interferes with relying on column default values; the cached object is missing those fields, so they appear to be empty (null) when the object is retrieved from cache.
Now explicitly setting them when inserting subscriptions, and cleaned up some code that had alternate code paths.

May also have made auto-subscription work for remote OStatus subscribers, but can't test until magic sigs are working again.

14 years agoRemove deprecated call-by-reference. Was causing a warning on Dreamhost.
Zach Copley [Thu, 18 Mar 2010 20:46:11 +0000 (13:46 -0700)]
Remove deprecated call-by-reference. Was causing a warning on Dreamhost.

14 years agoRemove deprecated call-by-reference. Was causing a warning on Dreamhost.
Zach Copley [Thu, 18 Mar 2010 20:46:11 +0000 (13:46 -0700)]
Remove deprecated call-by-reference. Was causing a warning on Dreamhost.

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Evan Prodromou [Thu, 18 Mar 2010 20:21:43 +0000 (15:21 -0500)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing

14 years agochange profile URL ensure method for OStatus
Evan Prodromou [Thu, 18 Mar 2010 20:21:26 +0000 (15:21 -0500)]
change profile URL ensure method for OStatus

14 years agoFix some remote subscription regressions from f21f78364a9cbde2ca535a3983b384707ad097ae
Brion Vibber [Thu, 18 Mar 2010 20:13:57 +0000 (13:13 -0700)]
Fix some remote subscription regressions from f21f78364a9cbde2ca535a3983b384707ad097ae
Ostatus_profile::ensureProfile() has been renamed to Ostatus_profile::ensureProfileURL()

14 years agoAdd readme notes about PHP <5.2.6 bug on 64-bit and PHP 5.3 issues.
Brion Vibber [Thu, 18 Mar 2010 18:12:27 +0000 (11:12 -0700)]
Add readme notes about PHP <5.2.6 bug on 64-bit and PHP 5.3 issues.

14 years agoRuntime check for known bad PHP versions with 64-bit stream_select() bug in xmppdaemo...
Brion Vibber [Thu, 18 Mar 2010 18:08:27 +0000 (11:08 -0700)]
Runtime check for known bad PHP versions with 64-bit stream_select() bug in xmppdaemon.php.

14 years agoMerge branch 'master' of git@gitorious.org:statusnet/mainline into testing
Brion Vibber [Thu, 18 Mar 2010 17:55:20 +0000 (10:55 -0700)]
Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing

14 years agoEnsure that DB connection is active at start of User::updateKeys() and Foreign_user...
Brion Vibber [Thu, 18 Mar 2010 16:22:08 +0000 (09:22 -0700)]
Ensure that DB connection is active at start of User::updateKeys() and Foreign_user::updateKeys(); calls to $this->_quote() require a live connection object and don't lazy-initialize themselves.
May fix WSOD when changing incoming email address.

14 years agoEnsure that DB connection is active at start of User::updateKeys() and Foreign_user...
Brion Vibber [Thu, 18 Mar 2010 16:22:08 +0000 (09:22 -0700)]
Ensure that DB connection is active at start of User::updateKeys() and Foreign_user::updateKeys(); calls to $this->_quote() require a live connection object and don't lazy-initialize themselves.
May fix WSOD when changing incoming email address.

14 years agoSigh... somehow left a stray bit of test code and broke activity.php.
Brion Vibber [Thu, 18 Mar 2010 16:10:44 +0000 (09:10 -0700)]
Sigh... somehow left a stray bit of test code and broke activity.php.

14 years agoadd exception on inconsistent db to User::getProfile()
Evan Prodromou [Thu, 18 Mar 2010 13:35:10 +0000 (08:35 -0500)]
add exception on inconsistent db to User::getProfile()

14 years agonew exception class for when a user has no profile
Evan Prodromou [Thu, 18 Mar 2010 13:32:17 +0000 (08:32 -0500)]
new exception class for when a user has no profile

14 years agoUsing an icon to represent the action for more text
Sarven Capadisli [Thu, 18 Mar 2010 13:29:35 +0000 (14:29 +0100)]
Using an icon to represent the action for more text

14 years agoUsing &#8230; (hellip) instead of "more" for link text
Sarven Capadisli [Thu, 18 Mar 2010 13:26:30 +0000 (14:26 +0100)]
Using &#8230; (hellip) instead of "more" for link text

14 years agoreverse order from delete, insert to insert, delete on ostatus conversion
Evan Prodromou [Thu, 18 Mar 2010 13:04:22 +0000 (08:04 -0500)]
reverse order from delete, insert to insert, delete on ostatus conversion

14 years agocatch exceptions in OStatus updates, log, and continue
Evan Prodromou [Thu, 18 Mar 2010 12:55:14 +0000 (07:55 -0500)]
catch exceptions in OStatus updates, log, and continue

14 years agoTicket #2244: fix to interpretation of escaped HTML and plaintext Atom content on...
Brion Vibber [Thu, 18 Mar 2010 00:35:27 +0000 (17:35 -0700)]
Ticket #2244: fix to interpretation of escaped HTML and plaintext Atom content on incoming OStatus messages.
We were double-unescaping for <content type="html">, turning &lt;b&gt; escaped chars into literal tags (which then may get removed entirely by the HTML scrubber).

14 years agoMerge branch 'ostatus-crop' into 0.9.x
Brion Vibber [Wed, 17 Mar 2010 23:41:01 +0000 (16:41 -0700)]
Merge branch 'ostatus-crop' into 0.9.x

14 years agoUpdated 'more' anchor for attachments to do an XHR GET
Sarven Capadisli [Wed, 17 Mar 2010 23:19:32 +0000 (00:19 +0100)]
Updated 'more' anchor for attachments to do an XHR GET

14 years agoAdd doc comments on saveHTMLFile; drop the extra <div> wrapping the contents to make...
Brion Vibber [Wed, 17 Mar 2010 22:49:10 +0000 (15:49 -0700)]
Add doc comments on saveHTMLFile; drop the extra <div> wrapping the contents to make it easier to extract without getting extra markup.

14 years agoLocalisation updates for !StatusNet from !translatewiki.net !sntrans
Siebrand Mazeland [Wed, 17 Mar 2010 21:44:38 +0000 (22:44 +0100)]
Localisation updates for !StatusNet from !translatewiki.net !sntrans

Signed-off-by: Siebrand Mazeland <s.mazeland@xs4all.nl>
14 years agoTweak to OStatus long message cropping: use original source notice URL for the link...
Brion Vibber [Wed, 17 Mar 2010 21:16:43 +0000 (14:16 -0700)]
Tweak to OStatus long message cropping: use original source notice URL for the link in the text version, don't shorten the link for the HTML so we can append params to it in JS.

14 years agoDisplay scrubbed HTML attachments inline on attachment view page.
Brion Vibber [Wed, 17 Mar 2010 20:58:25 +0000 (13:58 -0700)]
Display scrubbed HTML attachments inline on attachment view page.

14 years agoWhen too-long messages come in via OStatus, mark the attachment link up as a "more...
Brion Vibber [Wed, 17 Mar 2010 19:34:35 +0000 (12:34 -0700)]
When too-long messages come in via OStatus, mark the attachment link up as a "more" link in the HTML output, marked with class="attachment more" so JS code can fold it out smartly. Text output will still include the raw link.

14 years agoMerge branch 'testing' into 0.9.x
Brion Vibber [Wed, 17 Mar 2010 19:15:40 +0000 (12:15 -0700)]
Merge branch 'testing' into 0.9.x

14 years agoMerge branch 'master' into testing
Brion Vibber [Wed, 17 Mar 2010 19:15:12 +0000 (12:15 -0700)]
Merge branch 'master' into testing

14 years agoFix to regression for auto-subscribe - was backwards.
Brion Vibber [Wed, 17 Mar 2010 19:14:19 +0000 (12:14 -0700)]
Fix to regression for auto-subscribe - was backwards.

14 years agoWorkaround for HTTP authentication in the API when running PHP as CGI/FastCGI. Exampl...
Brion Vibber [Wed, 17 Mar 2010 17:52:11 +0000 (10:52 -0700)]
Workaround for HTTP authentication in the API when running PHP as CGI/FastCGI. Example rewrite lines added as comments in htaccess.sample, API tweaked to accept alternate environment var form.

14 years agoWorkaround for HTTP authentication in the API when running PHP as CGI/FastCGI. Exampl...
Brion Vibber [Wed, 17 Mar 2010 17:52:11 +0000 (10:52 -0700)]
Workaround for HTTP authentication in the API when running PHP as CGI/FastCGI. Example rewrite lines added as comments in htaccess.sample, API tweaked to accept alternate environment var form.

14 years agoPulling the stub plugin panel back out; we'll flesh it out more for 1.0.x and see...
Brion Vibber [Wed, 17 Mar 2010 15:55:16 +0000 (08:55 -0700)]
Pulling the stub plugin panel back out; we'll flesh it out more for 1.0.x and see if we can make it easier to disable through the config file for now.

Revert "Stub plugins administration panel, allows for disabling/re-enabling plugins from the default plugins list."

This reverts commit d9a9fd3779c592e3f4e0a8aea8e385ee2183c0b3.

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Evan Prodromou [Wed, 17 Mar 2010 14:38:39 +0000 (09:38 -0500)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing

14 years agoPull back for now on switch of PEAR error mode to exceptions; seems to trigger out...
Brion Vibber [Tue, 16 Mar 2010 23:23:19 +0000 (16:23 -0700)]
Pull back for now on switch of PEAR error mode to exceptions; seems to trigger out exceptions at various times we don't want them.

For instance this was throwing an exception for DB_DataObject::staticGet when there's no match... definitely not what we want when all our code expects to get a nice null.
Example of this causing trouble: http://gitorious.org/statusnet/mainline/merge_requests/131

Revert "Don't attempt to retrieve the current user from the DB while processing a DB error"

This reverts commit 68347691b0c7fb3f81415abd7fcdc5aec85cc554.

Revert "Use PHP exceptions for PEAR error handling."

This reverts commit d8212977ce7f911d4f9bd6e55f94aea059a86782.

14 years agoPull back for now on switch of PEAR error mode to exceptions; seems to trigger out...
Brion Vibber [Tue, 16 Mar 2010 23:23:19 +0000 (16:23 -0700)]
Pull back for now on switch of PEAR error mode to exceptions; seems to trigger out exceptions at various times we don't want them.

For instance this was throwing an exception for DB_DataObject::staticGet when there's no match... definitely not what we want when all our code expects to get a nice null.
Example of this causing trouble: http://gitorious.org/statusnet/mainline/merge_requests/131

Revert "Don't attempt to retrieve the current user from the DB while processing a DB error"

This reverts commit 68347691b0c7fb3f81415abd7fcdc5aec85cc554.

Revert "Use PHP exceptions for PEAR error handling."

This reverts commit d8212977ce7f911d4f9bd6e55f94aea059a86782.

14 years agoStub plugins administration panel, allows for disabling/re-enabling plugins from...
Brion Vibber [Tue, 16 Mar 2010 21:18:37 +0000 (14:18 -0700)]
Stub plugins administration panel, allows for disabling/re-enabling plugins from the default plugins list.

14 years agoRemoved unnecessary form_id. Using jQuery .find() instead of
Sarven Capadisli [Tue, 16 Mar 2010 20:02:56 +0000 (21:02 +0100)]
Removed unnecessary form_id. Using jQuery .find() instead of
constructing the selector.

14 years agoAdded extra condition to focusing on notice form on page load. If the
Sarven Capadisli [Tue, 16 Mar 2010 19:53:49 +0000 (20:53 +0100)]
Added extra condition to focusing on notice form on page load. If the
window location contains a fragument identifier, it will skip focus
and do what the UA does natively.

14 years agoRemoved dangling stylesheet
Sarven Capadisli [Tue, 16 Mar 2010 18:34:20 +0000 (19:34 +0100)]
Removed dangling stylesheet

14 years agoChange the workflow to get better discovery
Evan Prodromou [Tue, 16 Mar 2010 16:25:18 +0000 (11:25 -0500)]
Change the workflow to get better discovery

Tried to re-structure the workflow of discovery to get more and richer
data and hints.

14 years agoFixed "Warning: syslog() expects parameter 1 to be long, string given"
Jeffery To [Tue, 9 Mar 2010 02:20:48 +0000 (10:20 +0800)]
Fixed "Warning: syslog() expects parameter 1 to be long, string given"

With the FirePHP plugin enabled, I get these warnings in the output
page. This is because the StartLog handler inadvertly modifies the
original (number) priority with the corresponding (string) FirePHP
priority.

14 years agoFixed IE7 prompting the user to download OpenSearch description xml after login ...
Jeffery To [Tue, 16 Mar 2010 09:31:05 +0000 (17:31 +0800)]
Fixed IE7 prompting the user to download OpenSearch description xml after login (for a private site)

Flow:
1. Browser (IE7) is redirected to the login page.
2. Browser reads the page, sees OpenSearch descriptions, tries to
   download them. Each request gets recorded by SN as the page the user
   should be redirected to after logging in (returnto).
3. User logs in, then gets redirected to the returnto action, which is
   an OpenSearch description.

The OpenSearch descriptions aren't sensitive so making them public in a
private site should be okay.

(I recall fixing this in 0.8.x... :-( )

14 years agoThrow an exception if we receive a document instead of a feed's root element
Zach Copley [Tue, 16 Mar 2010 02:06:06 +0000 (19:06 -0700)]
Throw an exception if we receive a document instead of a feed's root element

14 years agoAlways output a site logo via /api/statusnet/config.:format (so client devs have...
Zach Copley [Tue, 16 Mar 2010 01:41:15 +0000 (18:41 -0700)]
Always output a site logo via /api/statusnet/config.:format (so client devs have something to use)

14 years agoBackground deletion of user accounts. Notices are deleted in chunks, then the user...
Brion Vibber [Mon, 15 Mar 2010 22:08:16 +0000 (15:08 -0700)]
Background deletion of user accounts. Notices are deleted in chunks, then the user itself when they're all gone.
While deletion is in progress, the account is locked with the 'deleted' role, which disables all actions with rights control.

Todo:
* Pretty up the notice on the profile page about the pending delete. Show status?
* Possibly more thorough account disabling, such as disallowing all use for login and access.
* Improve error recovery; worst case is that an account gets left locked in 'deleted' state but the queue jobs have gotten dropped out. This would leave the username in use and any undeleted notices in place.

14 years agoDrop result ID from data objects on clone(). This keeps the original object working...
Brion Vibber [Mon, 15 Mar 2010 22:41:57 +0000 (15:41 -0700)]
Drop result ID from data objects on clone(). This keeps the original object working if it was in the middle of a query loop, even if the cloned object falls out of scope and triggers its destructor.
This bug was hitting a number of places where we had the pattern:

$db->find();
while($dbo->fetch()) {
  $x = clone($dbo);
  // do anything with $x other than storing it in an array
}

The cloned object's destructor would trigger on the second run through the loop, freeing the database result set -- not really what we wanted.
(Loops that stored the clones into an array were fine, since the clones stay in scope in the array longer than the original does.)

Detaching the database result from the clone lets us work with its data without interfering with the rest of the query.
In the unlikely even that somebody is making clones in the middle of a query, then trying to continue the query with the clone instead of the original object, well they're gonna be broken now.

14 years agoInitial Twitpic-like media upload endpoint /api/statusnet/media/upload
Zach Copley [Mon, 15 Mar 2010 22:10:32 +0000 (22:10 +0000)]
Initial Twitpic-like media upload endpoint /api/statusnet/media/upload

14 years agoMerge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Mon, 15 Mar 2010 21:39:14 +0000 (14:39 -0700)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x

14 years agoBlow more timeline caches on notice delete. Fixes paging on public and profile timeli...
Brion Vibber [Mon, 15 Mar 2010 21:19:22 +0000 (14:19 -0700)]
Blow more timeline caches on notice delete. Fixes paging on public and profile timelines after deleting something from the first page.

14 years agoFix feed discovery: html:link@rel can contain multiple values; saw rel="updates alter...
Brion Vibber [Mon, 15 Mar 2010 20:26:42 +0000 (20:26 +0000)]
Fix feed discovery: html:link@rel can contain multiple values; saw rel="updates alternate" in the wild at http://tantek.com/ which broke old discovery code.

14 years agoTicket #2242: fix reading of inline XHTML content in Atom feeds for OStatus input.
Brion Vibber [Mon, 15 Mar 2010 20:21:55 +0000 (20:21 +0000)]
Ticket #2242: fix reading of inline XHTML content in Atom feeds for OStatus input.
Lookup of the <div> needed to check for the XHTML namespace.

14 years agoMerge branch 'testing' into 0.9.x
Brion Vibber [Mon, 15 Mar 2010 19:45:38 +0000 (12:45 -0700)]
Merge branch 'testing' into 0.9.x

14 years agouse canonical user url in xrd
James Walker [Mon, 15 Mar 2010 19:17:31 +0000 (15:17 -0400)]
use canonical user url in xrd

14 years agoConsolidate and patch up redirection to remote notices.
Brion Vibber [Mon, 15 Mar 2010 18:38:37 +0000 (11:38 -0700)]
Consolidate and patch up redirection to remote notices.
Now using the correct order consistently (URL, then URI if http/s), and as a niceness measure skipping the redirect if the only URL we have stored is the local one. (Could happen if remote OStatus feed has tag URIs and no alt link.)

14 years agoAdd scripts/docgen.php to build basic doxygen HTML docs from doc comments, either...
Brion Vibber [Mon, 15 Mar 2010 16:42:25 +0000 (09:42 -0700)]
Add scripts/docgen.php to build basic doxygen HTML docs from doc comments, either for core or a given plugin.
Nothing too fancy yet; style and layout needs some loving!

14 years agoLocalisation updates for !StatusNet from !translatewiki.net !sntrans
Siebrand Mazeland [Sun, 14 Mar 2010 22:30:19 +0000 (23:30 +0100)]
Localisation updates for !StatusNet from !translatewiki.net !sntrans

Signed-off-by: Siebrand Mazeland <s.mazeland@xs4all.nl>