statusnet:statusnet-dev.git
6 years agoUpdate version number 0.9.8 semver v0.9.8
Evan Prodromou [Mon, 1 Aug 2011 15:15:49 +0000 (11:15 -0400)]
Update version number

6 years agoupdate README
Evan Prodromou [Mon, 1 Aug 2011 15:14:20 +0000 (11:14 -0400)]
update README

6 years agoMerge branch '0.9.x'
Evan Prodromou [Sat, 30 Jul 2011 11:49:05 +0000 (07:49 -0400)]
Merge branch '0.9.x'

6 years agoMerge remote-tracking branch 'gitorious/0.9.x'
Evan Prodromou [Sat, 30 Jul 2011 11:48:27 +0000 (07:48 -0400)]
Merge remote-tracking branch 'gitorious/0.9.x'

6 years agojson_encode() realtime arguments (closes Bug#3260)
Evan Prodromou [Sat, 30 Jul 2011 11:45:07 +0000 (07:45 -0400)]
json_encode() realtime arguments (closes Bug#3260)

6 years agouse old-style plugin initializers as fallback for GoogleAnalytics
Evan Prodromou [Mon, 20 Jun 2011 21:06:17 +0000 (17:06 -0400)]
use old-style plugin initializers as fallback for GoogleAnalytics

6 years agouse async, domain-aware GoogleAnalytics JS
Evan Prodromou [Mon, 20 Jun 2011 20:38:00 +0000 (16:38 -0400)]
use async, domain-aware GoogleAnalytics JS

6 years agotest to check that Bookmark related links are appearing correctly
Evan Prodromou [Mon, 30 May 2011 14:04:25 +0000 (10:04 -0400)]
test to check that Bookmark related links are appearing correctly

6 years agoActivityImporter catches thrown exceptions by plugins and marks entry done
Evan Prodromou [Mon, 30 May 2011 13:57:49 +0000 (09:57 -0400)]
ActivityImporter catches thrown exceptions by plugins and marks entry done

6 years agouse integer iterator for childNodes in ActivityUtils::getLinks()
Evan Prodromou [Mon, 30 May 2011 13:57:11 +0000 (09:57 -0400)]
use integer iterator for childNodes in ActivityUtils::getLinks()

6 years agoMerge branch 'master' into 0.9.x
Evan Prodromou [Wed, 4 May 2011 21:46:36 +0000 (14:46 -0700)]
Merge branch 'master' into 0.9.x

6 years agoRevert "add rss.me to notice source list"
Evan Prodromou [Wed, 4 May 2011 21:46:26 +0000 (14:46 -0700)]
Revert "add rss.me to notice source list"

This reverts commit f1a14ba8015b690a10099f5d1e41ff320d2b6b88.

6 years agoFix URLs to reflect change in reCAPTCHA API
Zach Copley [Wed, 27 Apr 2011 19:40:43 +0000 (19:40 +0000)]
Fix URLs to reflect change in reCAPTCHA API

6 years agoFix URLs to reflect change in reCAPTCHA API
Zach Copley [Wed, 27 Apr 2011 19:40:43 +0000 (19:40 +0000)]
Fix URLs to reflect change in reCAPTCHA API

6 years agoadd rss.me to notice source list
Evan Prodromou [Mon, 4 Apr 2011 16:07:35 +0000 (12:07 -0400)]
add rss.me to notice source list

6 years agoPlugin to put the sitenotice in the sidebar
Evan Prodromou [Fri, 1 Apr 2011 17:34:55 +0000 (13:34 -0400)]
Plugin to put the sitenotice in the sidebar

6 years agodelete the Bookmark if Notice::saveNew() fails
Evan Prodromou [Fri, 1 Apr 2011 13:30:25 +0000 (09:30 -0400)]
delete the Bookmark if Notice::saveNew() fails

6 years agoDon't try to import a <dd> without a <dt> from delicious
Evan Prodromou [Thu, 31 Mar 2011 20:15:30 +0000 (16:15 -0400)]
Don't try to import a <dd> without a <dt> from delicious

6 years agoClear ;last version of stream if importing old stuff
Evan Prodromou [Thu, 31 Mar 2011 20:15:05 +0000 (16:15 -0400)]
Clear ;last version of stream if importing old stuff

6 years agoActivityImporter gives up on any exception
Evan Prodromou [Thu, 31 Mar 2011 17:53:17 +0000 (13:53 -0400)]
ActivityImporter gives up on any exception

6 years agoIf Router is mucked up, force URI for Bookmark
Evan Prodromou [Thu, 31 Mar 2011 15:20:24 +0000 (11:20 -0400)]
If Router is mucked up, force URI for Bookmark

6 years agoProvisional fix for ticket #3108: Facebook bridge sends "likes" as the notice's origi...
Brion Vibber [Thu, 31 Mar 2011 00:01:06 +0000 (17:01 -0700)]
Provisional fix for ticket #3108: Facebook bridge sends "likes" as the notice's original poster instead of as the person doing the liking.

Adds optional $profile parameter for Facebookclient constructor and uses that for the foreign_link lookup if provided instead of the notice's poster.

6 years agoProvisional workaround for router inconsistencies in background processes that switch...
Brion Vibber [Wed, 30 Mar 2011 21:18:29 +0000 (14:18 -0700)]
Provisional workaround for router inconsistencies in background processes that switch site configs.

Ensure that router is cleared when we do site setup; we can still fetch the data from cache, so it should stay fast, but should ensure that we don't end up with someone else's routes still set up, which may be an issue breaking some of the bookmark handling that needs routing with a rare plugin.

6 years agoincorrect name for bookmark plugin
Evan Prodromou [Wed, 30 Mar 2011 14:58:28 +0000 (10:58 -0400)]
incorrect name for bookmark plugin

6 years agoTwitterBridge: discard outgoing queue items instead of retrying when Twitter API...
Brion Vibber [Fri, 25 Mar 2011 01:41:25 +0000 (18:41 -0700)]
TwitterBridge: discard outgoing queue items instead of retrying when Twitter API returns HTTP 400 or 404 error codes

We get HTTP 400 for various cases of invalid data, where retrying doesn't help at all -- previously those would loop forever, or until something died at least. :)
400 is also used for rate limiting, but retrying *immediately* will just hit the rate limit again, so better to discard if we're going over for now.

6 years agoadd a fix1 to the version number 0.9.7fix1
Evan Prodromou [Wed, 23 Mar 2011 18:34:32 +0000 (14:34 -0400)]
add a fix1 to the version number

6 years agodon't send group private message mail notification to the author
Evan Prodromou [Wed, 23 Mar 2011 18:24:07 +0000 (14:24 -0400)]
don't send group private message mail notification to the author

6 years agoput correct content into the group private message update
Evan Prodromou [Wed, 23 Mar 2011 17:58:36 +0000 (13:58 -0400)]
put correct content into the group private message update

6 years agogroup private message email notification fix
Evan Prodromou [Wed, 23 Mar 2011 17:00:44 +0000 (13:00 -0400)]
group private message email notification fix

6 years agoget_class -> class_exists for class loading hack (fixme for 1.0: make sure all these...
Brion Vibber [Mon, 21 Mar 2011 18:43:02 +0000 (11:43 -0700)]
get_class -> class_exists for class loading hack (fixme for 1.0: make sure all these classes are in own files)

6 years agoremove type hinting -- fails when ArrayWrapper gets passed in some profile list pages
Brion Vibber [Mon, 21 Mar 2011 18:18:38 +0000 (11:18 -0700)]
remove type hinting -- fails when ArrayWrapper gets passed in some profile list pages

6 years agoMerge branch '0.9.x'
Brion Vibber [Fri, 18 Mar 2011 23:39:41 +0000 (16:39 -0700)]
Merge branch '0.9.x'

6 years agoModPlus plugin -- Ticket #3095: add remote profile options popup to group membership...
Brion Vibber [Fri, 18 Mar 2011 23:35:50 +0000 (16:35 -0700)]
ModPlus plugin -- Ticket #3095: add remote profile options popup to group membership and other profile lists

Popup remote profile options menu now shown on profile lists as well as notice lists.

6 years agofix ModPlus 'remote profile options' popup for Realtime
Brion Vibber [Fri, 18 Mar 2011 23:23:22 +0000 (16:23 -0700)]
fix ModPlus 'remote profile options' popup for Realtime

Switched from one-time setup to live stuff that'll work without per-notice setup.
Used to not matter because Realtime wouldn't include the extra stuff, but new Realtime pulls the full rendering, so yay!

6 years agoMerge branch '0.9.x'
Brion Vibber [Fri, 18 Mar 2011 21:11:27 +0000 (14:11 -0700)]
Merge branch '0.9.x'

6 years agoTickets #1610, #1949: show permalinks on Popular Notices, attachments aside sections
Brion Vibber [Fri, 18 Mar 2011 20:58:13 +0000 (13:58 -0700)]
Tickets #1610, #1949: show permalinks on Popular Notices, attachments aside sections

These mini notice lists were previously not actually showing links to the notices, making them hard to use. There was code to output a link, but it had been unused due to the config options triggering it not being set. The links also looked bad ("( see )" with bad spacing).
Replaced that code with a call into NoticeListItem's existing code to format a relative timestamp with the notice permalink, which looks nice. Used a div rather than p to avoid clearing the float, so it flows nicely.

6 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Thu, 17 Mar 2011 15:32:37 +0000 (11:32 -0400)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

6 years agoconfiguration option to bust frames or not
Evan Prodromou [Thu, 17 Mar 2011 15:31:43 +0000 (11:31 -0400)]
configuration option to bust frames or not

6 years agoMerge branch 'master' of gitorious.org:statusnet/mainline 0.9.7
Evan Prodromou [Thu, 17 Mar 2011 13:59:46 +0000 (09:59 -0400)]
Merge branch 'master' of gitorious.org:statusnet/mainline

6 years agoupgrade lifecycle to release
Evan Prodromou [Thu, 17 Mar 2011 13:58:41 +0000 (09:58 -0400)]
upgrade lifecycle to release

6 years ago0.9.7 release notes
Evan Prodromou [Thu, 17 Mar 2011 13:57:31 +0000 (09:57 -0400)]
0.9.7 release notes

6 years agoSuppress PHP warnings/notices during AtomPub XML parsing to avoid HTTP header problem...
Brion Vibber [Tue, 15 Mar 2011 17:09:20 +0000 (10:09 -0700)]
Suppress PHP warnings/notices during AtomPub XML parsing to avoid HTTP header problems when given bad input.

If display_errors is on, typical settings would cause PHP error messages to spew to output before the HTTP headers for setting a 400 error go through.
Also switched from deprecated static DOMDocument::loadXML() to non-static call.

6 years agoShow a reasonable error message when an image is bad, instead of
Zach Copley [Thu, 10 Mar 2011 18:08:14 +0000 (18:08 +0000)]
Show a reasonable error message when an image is bad, instead of
letting the exception continue bubbling up.

6 years agoShow a reasonable error message when an image is bad, instead of
Zach Copley [Thu, 10 Mar 2011 18:08:14 +0000 (18:08 +0000)]
Show a reasonable error message when an image is bad, instead of
letting the exception continue bubbling up.

6 years agoTicket #3076: fix regression in password recovery when email address given that doesn...
Brion Vibber [Wed, 9 Mar 2011 23:46:24 +0000 (15:46 -0800)]
Ticket #3076: fix regression in password recovery when email address given that doesn't match

Was triggering errors due to use of common_canonical_nickname() on arbitrary input without checking for exceptions about invalid nicknames (which didn't exist long ago in the before time)

6 years agoformat Atom datetimes as UTC
Evan Prodromou [Fri, 4 Mar 2011 20:26:25 +0000 (15:26 -0500)]
format Atom datetimes as UTC

6 years agoformat Atom datetimes as UTC
Evan Prodromou [Fri, 4 Mar 2011 20:26:25 +0000 (15:26 -0500)]
format Atom datetimes as UTC

6 years agobeta3 0.9.7beta3
Evan Prodromou [Thu, 3 Mar 2011 17:10:43 +0000 (12:10 -0500)]
beta3

6 years agoRevert "New version, dev cycle"
Evan Prodromou [Thu, 3 Mar 2011 17:09:51 +0000 (12:09 -0500)]
Revert "New version, dev cycle"

This reverts commit 96d0141848e6965d0e588b151054737495fb4900.

6 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Wed, 2 Mar 2011 23:36:29 +0000 (15:36 -0800)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

6 years agoFix typo in documentation. Spotted by Nikerabbit.
Siebrand Mazeland [Wed, 2 Mar 2011 08:57:02 +0000 (09:57 +0100)]
Fix typo in documentation. Spotted by Nikerabbit.

6 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Wed, 2 Mar 2011 21:52:22 +0000 (13:52 -0800)]
Merge branch 'master' into 0.9.x

6 years agoAdd unsubscribe option to resub-feed.php
Brion Vibber [Wed, 2 Mar 2011 20:49:37 +0000 (12:49 -0800)]
Add unsubscribe option to resub-feed.php

6 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Wed, 2 Mar 2011 01:17:19 +0000 (17:17 -0800)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

6 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Wed, 2 Mar 2011 01:11:29 +0000 (17:11 -0800)]
Merge branch 'master' into 0.9.x

6 years agoMore fixes for 'fav' IM command: don't die with a fatal error if the notice has alrea...
Brion Vibber [Wed, 2 Mar 2011 01:09:41 +0000 (17:09 -0800)]
More fixes for 'fav' IM command: don't die with a fatal error if the notice has already been favored, and don't spew a warning when checking for user ID match.

6 years agoWorkaround for bug causing fatal error during favoriting; Profile::getCurrentNotice...
Brion Vibber [Wed, 2 Mar 2011 01:01:35 +0000 (17:01 -0800)]
Workaround for bug causing fatal error during favoriting; Profile::getCurrentNotice() was returning an ArrayList instead of a Notice directly due to pulling through Profile::getNotices(). This caused failure in Fave::addNew() which specifies it wants a Notice. Caused failure of the 'fav' IM command.

6 years agoMerge commit 'refs/merge-requests/153' of git://gitorious.org/statusnet/mainline...
Zach Copley [Tue, 1 Mar 2011 00:36:59 +0000 (16:36 -0800)]
Merge commit 'refs/merge-requests/153' of git://gitorious.org/statusnet/mainline into merge-requests/153

6 years agoMerge branch 'extprofile' into 0.9.x
Brion Vibber [Mon, 28 Feb 2011 18:45:53 +0000 (10:45 -0800)]
Merge branch 'extprofile' into 0.9.x

6 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Mon, 28 Feb 2011 18:18:18 +0000 (10:18 -0800)]
Merge branch 'master' into 0.9.x

6 years agoAPI group actions join/leave now handle same events of web UI action
macno [Mon, 28 Feb 2011 10:56:02 +0000 (11:56 +0100)]
API group actions join/leave now handle same events of web UI action

6 years agoIf there's a DB error, script returns after catching the exception
macno [Mon, 28 Feb 2011 10:53:11 +0000 (11:53 +0100)]
If there's a DB error, script returns after catching the exception

6 years agoFix for ticket #2248: flickr etc URLs that contain @ in the paths etc no longer accid...
Brion Vibber [Fri, 25 Feb 2011 23:46:35 +0000 (15:46 -0800)]
Fix for ticket #2248: flickr etc URLs that contain @ in the paths etc no longer accidentally trip the mailto: thingy

6 years agoTest case for ticket #2248: flickr URLs with @ in the path get misinterpreted as...
Brion Vibber [Fri, 25 Feb 2011 23:38:24 +0000 (15:38 -0800)]
Test case for ticket #2248: flickr URLs with @ in the path get misinterpreted as mailto

6 years ago* add support for Friulian
Siebrand Mazeland [Thu, 24 Feb 2011 12:02:11 +0000 (13:02 +0100)]
* add support for Friulian
* move a line around for sorting reasons

6 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Thu, 24 Feb 2011 11:52:28 +0000 (12:52 +0100)]
Localisation updates from translatewiki.net.

6 years agoWorkaround for reply timeline since_id issue: save the notice.created value into...
Brion Vibber [Fri, 25 Feb 2011 21:22:13 +0000 (13:22 -0800)]
Workaround for reply timeline since_id issue: save the notice.created value into reply.modified, so we can key off it as expected.

As a hack this removes the mysql_timestamp bit from the field settings on reply.modified so that our value actually gets saved. This *should* work ok as long as system timezone is set correctly, which we now set to UTC to match when connecting.

6 years agofix layout of form with magic hoohaw
Evan Prodromou [Fri, 25 Feb 2011 21:18:28 +0000 (13:18 -0800)]
fix layout of form with magic hoohaw

6 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Fri, 25 Feb 2011 20:56:40 +0000 (12:56 -0800)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

6 years agoallow access to confirm first for not-logged-in users
Evan Prodromou [Fri, 25 Feb 2011 20:56:21 +0000 (12:56 -0800)]
allow access to confirm first for not-logged-in users

6 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Fri, 25 Feb 2011 20:24:18 +0000 (12:24 -0800)]
Merge branch 'master' into 0.9.x

6 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Fri, 25 Feb 2011 20:24:18 +0000 (12:24 -0800)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

6 years agoScalability work on user backup stream generation.
Brion Vibber [Fri, 25 Feb 2011 19:04:57 +0000 (11:04 -0800)]
Scalability work on user backup stream generation.

UserActivityStream -- used to create a full activity stream including subscriptions, favorites, notices, etc -- normally buffers everything into memory at once. This is infeasible for accounts with long histories of serious usage; it can take tens of seconds just to pull all records from the database, and working with them all in memory is very likely to hit resource limits.
This commit adds an alternate mode for this class which avoids pulling notices until during the actual output. Instead of pre-sorting and buffering all the notices, empty spaces between the other activities are filled in with notices as we're making output. This means more smaller queries spread out during operations, and less stuff kept in memory.

Callers (backupaccount action, and backupuser.php) which can stream their output pass an $outputMode param of UserActivityStream::OUTPUT_RAW, and during getString() it'll send straight to output as well as slurping the notices in this extra funky fashion.
Other callers will let it default to the OUTPUT_STRING mode, which keeps the previous behavior.

There should be a better way to do this, swapping out the stringer output for raw output more consitently.

6 years agoQuick fix for popular notices in cleaner theme.
Samantha Doherty [Fri, 25 Feb 2011 18:43:21 +0000 (13:43 -0500)]
Quick fix for popular notices in cleaner theme.

6 years agoTest cases for Unicode hashtags
Brion Vibber [Fri, 25 Feb 2011 18:25:13 +0000 (10:25 -0800)]
Test cases for Unicode hashtags

6 years agoMerge branch 'unicode-tag' into 0.9.x
Brion Vibber [Fri, 25 Feb 2011 18:17:03 +0000 (10:17 -0800)]
Merge branch 'unicode-tag' into 0.9.x

6 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Fri, 25 Feb 2011 18:16:00 +0000 (10:16 -0800)]
Merge branch 'master' into 0.9.x

6 years agoFirst revision of new theme, cleaner.
Samantha Doherty [Fri, 25 Feb 2011 17:00:55 +0000 (12:00 -0500)]
First revision of new theme, cleaner.

6 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Fri, 25 Feb 2011 16:02:26 +0000 (08:02 -0800)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

6 years agoLet users who aren't allowed to login confirm their email separately
Evan Prodromou [Fri, 25 Feb 2011 16:01:41 +0000 (08:01 -0800)]
Let users who aren't allowed to login confirm their email separately

6 years agoallow passing an url to email confirmation function
Evan Prodromou [Fri, 25 Feb 2011 16:00:55 +0000 (08:00 -0800)]
allow passing an url to email confirmation function

6 years agoMerge branch 'json-activities' into 0.9.x
Zach Copley [Fri, 25 Feb 2011 08:15:26 +0000 (00:15 -0800)]
Merge branch 'json-activities' into 0.9.x

6 years agoRevert "FacebookBridge - Add lots of debug output (revert me)"
Zach Copley [Thu, 24 Feb 2011 22:21:50 +0000 (14:21 -0800)]
Revert "FacebookBridge - Add lots of debug output (revert me)"

This reverts commit c44a622449757fe13dc30ce120af07aa03ac5dc4.

6 years agoFacebookBridge - Don't hinder autoloading if the Facebook ID and secret aren't set
Zach Copley [Thu, 24 Feb 2011 21:57:21 +0000 (13:57 -0800)]
FacebookBridge - Don't hinder autoloading if the Facebook ID and secret aren't set

6 years agoFacebookBridge - dequeue messages that aren't bound for Facebook
Zach Copley [Thu, 24 Feb 2011 21:29:56 +0000 (13:29 -0800)]
FacebookBridge - dequeue messages that aren't bound for Facebook

6 years agoFacebookBridge - Add lots of debug output (revert me)
Zach Copley [Thu, 24 Feb 2011 20:59:37 +0000 (12:59 -0800)]
FacebookBridge - Add lots of debug output (revert me)

6 years agoFacebookBridge - make a huge fuss if we can't create a valid Facebookclient
Zach Copley [Thu, 24 Feb 2011 20:52:31 +0000 (12:52 -0800)]
FacebookBridge - make a huge fuss if we can't create a valid Facebookclient

6 years agoUnicodize a couple regexes for tags: fixes linking & detection of non-ASCII tags...
Brion Vibber [Thu, 24 Feb 2011 00:37:55 +0000 (16:37 -0800)]
Unicodize a couple regexes for tags: fixes linking & detection of non-ASCII tags that match the current regexes.
(Checks for 'letter' and 'number' characters, underscore, dash, and period.)

6 years agoreplace router regexes with tags with a fixed chunk that takes any non-/ char. This...
Brion Vibber [Thu, 24 Feb 2011 00:32:56 +0000 (16:32 -0800)]
replace router regexes with tags with a fixed chunk that takes any non-/ char. This'll let other code decide what's a valid tag.

6 years agoFix ticket #3057: apply HTML escaping on special characters in Twitter import
Brion Vibber [Tue, 22 Feb 2011 00:18:45 +0000 (16:18 -0800)]
Fix ticket #3057: apply HTML escaping on special characters in Twitter import

Changes the replacement of Twitter "entities" from in-place reverse ordering ('to preserve indices') to a forward-facing append-in-chunks that pulls in both the text and link portions, and escapes them all.
This unfortunately means first *de*-escaping the &lt; and &gt; that Twitter helpfully adds for us.... and any literal &blah;s that get written. This seems to match Twitter's web UI, however horrid it is.

6 years agoPartial implementation for ticket #2442: MobileProfile plugin should allow manual...
Brion Vibber [Tue, 22 Feb 2011 00:10:07 +0000 (16:10 -0800)]
Partial implementation for ticket #2442: MobileProfile plugin should allow manual switching between regular and mobile rendering modes

http://status.net/open-source/issues/2442

Notes:
* Mapstraction causes JavaScript errors in XHTML mode, breaking our code if we're run later so the link doesn't work to get back to Desktop.
* not 100% sure how safe feature detection is here?
* Currently will be useless but visible links if no JS available; need to fall back to server-side for limited browsers

6 years agoTicket #3011: Add attachments/uploads and attachments/file_quota to api/statusnet...
Brion Vibber [Mon, 21 Feb 2011 23:52:12 +0000 (15:52 -0800)]
Ticket #3011: Add attachments/uploads and attachments/file_quota to api/statusnet/config.(xml|json)

file_quota is adjusted from the defined value to take into account the maximum upload size limits in PHP, or cropped to 0 if uploads are disabled.
This can be used by client apps to determine maximum size for an attachment.

6 years agoFix ticket #3001: Twitter bridge was replacing original form of @-mentions with canon...
Brion Vibber [Mon, 21 Feb 2011 23:01:57 +0000 (15:01 -0800)]
Fix ticket #3001: Twitter bridge was replacing original form of @-mentions with canonical form unexpectedly

Now using the original text form of @-mentions and #-tags, as in Twitter's own HTMLification.
Canonical forms are still used in generating links, where it's polite to match the canonical form.

6 years agoFix issue #3035: search highlighting broke URLs in some imported messages (Twitter)
Brion Vibber [Mon, 21 Feb 2011 22:14:32 +0000 (14:14 -0800)]
Fix issue #3035: search highlighting broke URLs in some imported messages (Twitter)

Search highlighting was being done with a regex on raw HTML text, followed by a second regex undoing replacements within double-quoted attribute values.
This broke on imported Twitter messages, as the way we generate the markup uses single quotes on the attributes, which didn't get matched by the second regex.
I've replaced this do-then-undo cycle by dividing up the import HTML into freetext spans and tags; the freetext gets replaced, while the tags are left untouched.

6 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Mon, 21 Feb 2011 21:36:12 +0000 (16:36 -0500)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

6 years agodisallow login for users without validated email
Evan Prodromou [Mon, 21 Feb 2011 21:20:10 +0000 (16:20 -0500)]
disallow login for users without validated email

6 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Mon, 21 Feb 2011 20:33:47 +0000 (12:33 -0800)]
Merge branch 'master' into 0.9.x

6 years agoFixes for ticket #3052: some commands started triggering when extra text is supposed...
Brion Vibber [Mon, 21 Feb 2011 19:42:32 +0000 (11:42 -0800)]
Fixes for ticket #3052: some commands started triggering when extra text is supposed to suppress them

Regressions caused by bad refactoring in commit 21feac3bea72b0ecd88a3.
Test cases in tests/CommandInterpreterTest.php were made against the pre-refactoring code, and now check out with the fixed code.
Failures were caused by not changing logic structure when moving from multiple exit points (each if point would return directly with a null or an object) to setting a result variable and then falling through to a common exit point. Without the if statements being restructured, the result variable would just get overridden by the next case.

6 years agoCommandInterpreter test cases to guard against regressions
Brion Vibber [Mon, 21 Feb 2011 20:09:54 +0000 (12:09 -0800)]
CommandInterpreter test cases to guard against regressions

6 years agoIssue #3049 - resync doc/im with the help command text (various additions since doc...
Brion Vibber [Mon, 21 Feb 2011 19:23:07 +0000 (11:23 -0800)]
Issue #3049 - resync doc/im with the help command text (various additions since doc was last edited)