Evan Prodromou [Mon, 31 May 2010 14:50:10 +0000 (07:50 -0700)]
cache notice counts in utility table
Evan Prodromou [Mon, 31 May 2010 14:48:14 +0000 (07:48 -0700)]
load Sitemap_notice_count
Evan Prodromou [Fri, 21 May 2010 20:47:30 +0000 (16:47 -0400)]
make user counts use the database table
Evan Prodromou [Mon, 3 May 2010 18:00:12 +0000 (14:00 -0400)]
Database tables to cache expensive query data
We need to bundle counts of notices and users by date. This can be
expensive for large sites. So, new tables are added to cache the
results of these queries, which don't change after the date is over.
Evan Prodromou [Mon, 3 May 2010 15:23:18 +0000 (11:23 -0400)]
mark user pages as being high priority
Evan Prodromou [Mon, 3 May 2010 15:23:01 +0000 (11:23 -0400)]
mark notice pages as being archived
Evan Prodromou [Mon, 12 Apr 2010 18:34:22 +0000 (14:34 -0400)]
note that sitemap actions are readonly
Evan Prodromou [Mon, 12 Apr 2010 18:32:01 +0000 (14:32 -0400)]
add sitemap statement to robots.txt
Evan Prodromou [Mon, 12 Apr 2010 16:13:48 +0000 (12:13 -0400)]
cache notice and user counts in sitemap index
Evan Prodromou [Mon, 12 Apr 2010 16:06:08 +0000 (12:06 -0400)]
make sure notice and user sitemap are 'in' top level directory
Evan Prodromou [Mon, 12 Apr 2010 16:00:15 +0000 (12:00 -0400)]
cache user data for user sitemap
Evan Prodromou [Mon, 12 Apr 2010 15:52:19 +0000 (11:52 -0400)]
cache results of notice sitemap query
Evan Prodromou [Mon, 12 Apr 2010 15:28:41 +0000 (11:28 -0400)]
use an array for notice sitemap
Evan Prodromou [Mon, 12 Apr 2010 15:05:19 +0000 (11:05 -0400)]
max users, notices per sitemap = 50K
Evan Prodromou [Mon, 12 Apr 2010 15:04:56 +0000 (11:04 -0400)]
show sitemapindex with user and notice sitemaps
Evan Prodromou [Mon, 12 Apr 2010 14:23:32 +0000 (10:23 -0400)]
Move NOTICES_PER_MAP to SitemapPlugin
Evan Prodromou [Mon, 12 Apr 2010 14:11:45 +0000 (10:11 -0400)]
bundle users by reg date
Evan Prodromou [Mon, 12 Apr 2010 14:11:18 +0000 (10:11 -0400)]
better calculation for end date in notice sitemaps
Evan Prodromou [Sat, 10 Apr 2010 14:24:58 +0000 (10:24 -0400)]
Start of an action for sitemap index
Evan Prodromou [Sat, 10 Apr 2010 14:21:19 +0000 (10:21 -0400)]
change URLs for user sitemap
Evan Prodromou [Sat, 10 Apr 2010 14:03:57 +0000 (10:03 -0400)]
move USERS_PER_MAP to plugin
Evan Prodromou [Sat, 10 Apr 2010 14:03:37 +0000 (10:03 -0400)]
correct element name and namespace for sitemapactions
Evan Prodromou [Fri, 26 Mar 2010 03:56:09 +0000 (23:56 -0400)]
better query for notices by date
Evan Prodromou [Mon, 22 Mar 2010 12:09:15 +0000 (08:09 -0400)]
Add a Notice sitemap
Evan Prodromou [Mon, 22 Mar 2010 04:25:49 +0000 (00:25 -0400)]
user sitemap
Evan Prodromou [Tue, 1 Jun 2010 20:51:41 +0000 (13:51 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline
Brion Vibber [Tue, 1 Jun 2010 18:41:17 +0000 (18:41 +0000)]
Mapstraction plugin fix: set icon dimensions (24x24 px); Google Maps provider otherwise defaults to stretching them to a funny shape instead of showing square avatars.
Brion Vibber [Tue, 1 Jun 2010 18:29:01 +0000 (18:29 +0000)]
Ticket #2330: fix Google Maps provider for Mapstraction plugin
Zach Copley [Mon, 31 May 2010 22:48:24 +0000 (15:48 -0700)]
Added DarterosStatus to notice sources
Brion Vibber [Fri, 28 May 2010 23:52:17 +0000 (16:52 -0700)]
OpenID: add option to enable asking for a username to append to the trusted provider's base URL. Good for hooking up with sites like WikiHow, where usernames are appended to a base URL to get a profile URL which is used as the provider.
$config['openid']['append_username'] = true;
or check 'Append a username to base URL' in OpenID admin panel.
Brion Vibber [Fri, 28 May 2010 23:18:40 +0000 (16:18 -0700)]
Merge branch 'master' into testing
Brion Vibber [Fri, 28 May 2010 23:03:09 +0000 (16:03 -0700)]
Ticket 2329 followup: my clever 'let it use the default' was foiled by PHP gettext module not quite exposing a compatible interface as the backend gettext library. (Most funcs squash null domain parameter into '' empty string, which isn't interpreted as 'use the current default'.)
Zach Copley [Fri, 28 May 2010 06:24:39 +0000 (06:24 +0000)]
Merge branch 'master' of git@gitorious.org:statusnet/mainline
Zach Copley [Fri, 28 May 2010 06:22:12 +0000 (06:22 +0000)]
Bugfix: api/statuses/destroy.:format was outputting deleted notice
twice, causing parsers to fail.
Brion Vibber [Thu, 27 May 2010 21:54:43 +0000 (14:54 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
Brion Vibber [Thu, 27 May 2010 21:22:24 +0000 (14:22 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline
Brion Vibber [Thu, 27 May 2010 21:18:08 +0000 (14:18 -0700)]
Ticket #2329: fix for use of _m() translation functions from outside of plugin directories
Zach Copley [Thu, 27 May 2010 20:49:23 +0000 (13:49 -0700)]
Pass auth user into Atom feed generators (needed for outputting favorited status in statusnet:notice_info tag)
Zach Copley [Wed, 26 May 2010 20:31:36 +0000 (20:31 +0000)]
Remove settting/getting a 'verb' for Facebook stream entries / status
updates. Facebook has disabled the ability to store user preferences
via their old REST API, causing our application to break. Also, verbs
in status updates seem to be deprecated, and stream posts don't seem
to have a verb.
Zach Copley [Wed, 26 May 2010 00:41:18 +0000 (00:41 +0000)]
Merge branch 'more-notice-info'
Zach Copley [Wed, 26 May 2010 00:39:44 +0000 (00:39 +0000)]
Add repeat info to statusnet:notice_info Atom element
Brion Vibber [Thu, 20 May 2010 19:21:29 +0000 (12:21 -0700)]
WikiHowProfile plugin; pulls avatar from WikiHow profile pages when registering or adding account with OpenID. (Full name, location, homepage, and bio are also on the profile page but not marked up in a way they can be easily retrieved yet.)
OpenID plugin: Added events at OpenID account creation and update time to allow additional customizations for particular sites.
Zach Copley [Tue, 25 May 2010 21:08:25 +0000 (21:08 +0000)]
Small update to the README: Facebook has changed the name of one of
its application settings fields.
Brion Vibber [Tue, 25 May 2010 20:11:36 +0000 (13:11 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline
Brion Vibber [Tue, 25 May 2010 20:09:21 +0000 (13:09 -0700)]
Hotpatch for infinite redirection-following loop seen processing URLs to http://clojure.org/ -- if we end up with an unstable redirect target (final item in a redirect chain ends up redirecting us somewhere else when we visit it again), just save the last version we saw instead of trying to start over.
Pretty much everything in File and File_redirection initial processing needs to be rewritten to be non-awful; this code is very hard to follow and very easy to make huge bugs. A fair amount of the complication is probably obsoleted by the redirection following being built into HTTPClient now.
Brion Vibber [Tue, 25 May 2010 19:31:16 +0000 (12:31 -0700)]
Revert "Backing out locale switch change to see if this affects our mystery memory leak."
This reverts commit
f98609204fb9b5966b9e4c9e4bf8bf605656c31c.
Brion Vibber [Tue, 25 May 2010 18:36:42 +0000 (11:36 -0700)]
Backing out locale switch change to see if this affects our mystery memory leak.
Revert "Locale switch cleanup: use common_switch_locale() which is safer for updating gettext state. Also moved a few calls to reduce chance of hitting an exception before switching back."
This reverts commit
74a89b1fc37067d91d31bd66922053361eb4e616.
Zach Copley [Tue, 25 May 2010 15:40:38 +0000 (15:40 +0000)]
Dequeue notice when we hit any Facebook error.
Zach Copley [Mon, 24 May 2010 23:27:53 +0000 (23:27 +0000)]
Accidentally used the wrong log level (LOG ERROR instead of LOG_ERR)
Zach Copley [Mon, 24 May 2010 22:41:34 +0000 (22:41 +0000)]
Clear up warnings I introduced by refactoring Facebook posting
Zach Copley [Mon, 24 May 2010 21:25:21 +0000 (21:25 +0000)]
Upgrade Facebook posting:
- Use FQL to check for publish stream permission instead of old REST API
- Better error handling, especially for error code 100
- More logging / better log messages
Zach Copley [Fri, 21 May 2010 05:03:23 +0000 (05:03 +0000)]
Upgrade to latest old REST API library (0.1.0)
Brion Vibber [Mon, 24 May 2010 14:47:15 +0000 (07:47 -0700)]
Handle funky notice deletion cases more gracefully: if we already have a deleted_notice entry, don't freak out when we try to save it again on the second try.
Brion Vibber [Sun, 23 May 2010 00:43:56 +0000 (17:43 -0700)]
Hotpatch for Facebook mirror problems: drop messages when hitting rate limit (err 341) instead of retrying forever. On unknown errors, now throwing an exception so it'll hit the message retry limits.
Brion Vibber [Fri, 21 May 2010 21:09:05 +0000 (14:09 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline
Brion Vibber [Fri, 21 May 2010 21:07:59 +0000 (14:07 -0700)]
Add $config['queue']['stomp_enqueue_to'] override for which queue server to send to.
Must be set to a value that matches one of the entries in $config['queue']['stomp_server'] array, otherwise ignored.
Evan Prodromou [Fri, 21 May 2010 20:47:57 +0000 (16:47 -0400)]
Merge branch 'master' of gitorious.org:statusnet/mainline
Brion Vibber [Fri, 21 May 2010 20:12:25 +0000 (13:12 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
Zach Copley [Fri, 21 May 2010 17:29:28 +0000 (10:29 -0700)]
Add TweetDeck to notice sources
Brion Vibber [Fri, 21 May 2010 17:18:13 +0000 (10:18 -0700)]
Avoid PHP notice about undefined array index when no avatar photo available from Google profile
Brion Vibber [Fri, 21 May 2010 17:12:39 +0000 (10:12 -0700)]
Disable SSL peer/hostname verification for HTTPClient unless we've configured a trusted CA bundle like this: $config['http']['ssl_cafile'] = '/usr/lib/ssl/certs/ca-certificates.crt';
The previous state was failing on all HTTPS hits due to HTTP_Request2 library turning on the validation check but not specifying a CA file.
Brion Vibber [Thu, 20 May 2010 19:46:36 +0000 (12:46 -0700)]
Added block link to subscription notification emails; block action can now take a profile ID on the URL; added profile details to block page so there's an indication of who you're blocking before you pull the trigger.
Fixed typo in RedirectingAction when no return-to data provided in form submission.
RedirectingAction::returnToArgs() has been renamed to returnToPrevious() to avoid conflict with Action::returnToArgs() which returns arguments to be passed to other actions as return-to arguments. All callers should now be updated.
More profile settings actions will now redirect through a login form if visited as a GET request, as would be expected from a bookmark, link sent in e-mail etc.
Brion Vibber [Wed, 19 May 2010 23:19:06 +0000 (16:19 -0700)]
Quick fix for creating OpenID accounts authenticating against a MediaWiki site; trim the 'User:' etc from the final path segment before generating a nickname from it. Avoids ending up with nicks like 'userbrion' on your first OpenID login!
Brion Vibber [Wed, 19 May 2010 22:46:39 +0000 (15:46 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline
Brion Vibber [Wed, 19 May 2010 22:12:39 +0000 (15:12 -0700)]
Add config option for RequireValidatedEmail plugin to skip the check for folks with a trusted OpenID association.
Also added an event that other plugins or local config can use to override the checks.
Zach Copley [Wed, 19 May 2010 21:00:15 +0000 (21:00 +0000)]
Hotpatch to add additional debug statements to FacebookPlugin's
facebook posting code.
Brion Vibber [Wed, 19 May 2010 17:59:14 +0000 (10:59 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
Brion Vibber [Wed, 19 May 2010 17:10:55 +0000 (10:10 -0700)]
Locale switch cleanup: use common_switch_locale() which is safer for updating gettext state. Also moved a few calls to reduce chance of hitting an exception before switching back.
Should help with problems where xmppdaemon would get stuck in wrong locale.
Zach Copley [Wed, 12 May 2010 22:08:01 +0000 (15:08 -0700)]
Need to always emit statusnet:notice_info so it's available in profile feeds
Zach Copley [Thu, 6 May 2010 21:36:13 +0000 (21:36 +0000)]
Remove errant double HTML entity encoding in API source attribution
Zach Copley [Thu, 6 May 2010 20:25:20 +0000 (20:25 +0000)]
Allow OStatusPlugin to set the source attribution title
Zach Copley [Thu, 6 May 2010 19:52:25 +0000 (19:52 +0000)]
- OStatusPlugin should return true if it doesn't need to handle source
attribution
- Remove stray break statement from NoticeList
Zach Copley [Thu, 6 May 2010 07:55:17 +0000 (00:55 -0700)]
HTML entity encode source link URLs in plain XML output and add rel="nofollow" to them
Zach Copley [Thu, 6 May 2010 07:44:56 +0000 (00:44 -0700)]
Add source link attr to statusnet:notice_info element in Atom output for notices
Zach Copley [Thu, 6 May 2010 07:20:10 +0000 (00:20 -0700)]
Refactor and centralize notice source link calculation
Zach Copley [Thu, 6 May 2010 05:35:16 +0000 (22:35 -0700)]
Add xmlns:statusnet and statusnet:notice_info element to Atom entries for notices
Brion Vibber [Tue, 18 May 2010 21:52:17 +0000 (21:52 +0000)]
Redirect non-SSL hits to login & register actions to SSL if 'always' or 'sometimes' SSL modes are kicked in.
The forms would already submit to SSL, but people are happier if they start on a secure page!
Note: this really should be done for sensitive/all URLs in index.php, but it seems a bit awkward to reconstruct the SSL version of the link atm. Cleanup todo!
Brion Vibber [Tue, 18 May 2010 20:44:23 +0000 (13:44 -0700)]
typo fix in en_GB localization (also updated @ translatewiki)
Brion Vibber [Tue, 18 May 2010 20:37:46 +0000 (13:37 -0700)]
Merge branch 'openid-teams' into testing
Brion Vibber [Tue, 18 May 2010 17:39:56 +0000 (10:39 -0700)]
OpenID access control options: trusted provider URL, Launchpad team restrictions. Added an admin panel for setting these and OpenID-only mode, off by default.
To enable the admin panel:
$config['admin']['panels'][] = 'openid';
Or to set them manually:
$config['openid']['trusted_provider'] = 'https://login.ubuntu.net/';
$config['openid']['required_team'] = 'my-project-cabal';
$config['site']['openidonly'] = true;
OpenID-only mode can still be set from addPlugin() parameters as well for backwards compatibility.
Note: if it's set there, that value will override the setting from the database or config.php.
Note that team restrictions are only really meaningful if a trusted provider is set; otherwise,
any OpenID server could report back that users are members of the given team.
Restrictions are checked only at OpenID authentication time and will not kick off people currently
with a session open; existing remembered logins may also survive these changes.
Using code for Launchpad team support provided by Canonical under AGPLv3, pulled from r27 of
WordPress teams integration plugin:
https://code.edge.launchpad.net/~canonical-isd-hackers/wordpress-teams-integration/trunk
Brion Vibber [Tue, 18 May 2010 20:21:23 +0000 (13:21 -0700)]
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
James Walker [Tue, 18 May 2010 14:09:16 +0000 (10:09 -0400)]
invalid mbox_sha1sum in the case where users don't have an email address
(reported by pedantic-web.org)
Brion Vibber [Mon, 17 May 2010 19:47:44 +0000 (19:47 +0000)]
Include notice fragment on 'in context' links in Realtime plugin family.
Brion Vibber [Mon, 17 May 2010 19:37:47 +0000 (19:37 +0000)]
Patch from g0: fix for conversation links in Realtime updates
Previously was using the reply-to URL, which didn't match with other displays.
Now sends to the right conversation page.
James Walker [Fri, 14 May 2010 20:43:21 +0000 (16:43 -0400)]
accept either salmon endpoint (until they're unified in the spec)
James Walker [Fri, 14 May 2010 20:41:29 +0000 (16:41 -0400)]
allow hyphens in subdomains for webfinger addresses
Brion Vibber [Thu, 13 May 2010 23:47:58 +0000 (16:47 -0700)]
More direct text for registration licensing/tos checkbox for private and all-rights-reserved sites.
Brion Vibber [Wed, 12 May 2010 18:09:37 +0000 (11:09 -0700)]
Fix keys() / keyTypes() mixup in SamplePlugin
Brion Vibber [Tue, 11 May 2010 19:22:14 +0000 (12:22 -0700)]
Windows server fix: Use platform EOL in debug log file
Brion Vibber [Tue, 11 May 2010 19:16:13 +0000 (12:16 -0700)]
Installer tweak for Windows: normalize line endings to platform standard in generated config.php
Added a comment that the writable directory checks are insufficient to catch ACL problems on Windows; need a better check for that.
Zach Copley [Fri, 7 May 2010 23:32:24 +0000 (16:32 -0700)]
Fix for repeats from the API having null source attribution
Brion Vibber [Fri, 7 May 2010 01:28:37 +0000 (01:28 +0000)]
Allow plugins to load their styles for mobile view; fixes bad realtime button layout
Brion Vibber [Thu, 6 May 2010 21:29:04 +0000 (21:29 +0000)]
Ticket #2184: recognize Palm Pre / WebOS browsers for MobileProfile
One-line addition of 'webos' to the keywords list.
Zach Copley [Wed, 5 May 2010 21:46:36 +0000 (14:46 -0700)]
Implement since_id and max_id param handling for /api/favorites
Brion Vibber [Wed, 5 May 2010 20:11:36 +0000 (13:11 -0700)]
XMPP debugging: log the message source when discarding empty or unrecognized messages.
Brion Vibber [Wed, 5 May 2010 18:28:05 +0000 (11:28 -0700)]
Quick fix for DirectionDetector: only apply <span class="rtl"> once; if it's already there in an incoming message (eg via OStatus), don't reapply it.
Modified from patch from Everplays
Brion Vibber [Wed, 5 May 2010 17:51:05 +0000 (10:51 -0700)]
Clean up reference usage warnings in DirectionDetector plugin
Brion Vibber [Wed, 5 May 2010 01:43:32 +0000 (18:43 -0700)]
Handle timeout more gracefully in background pings
Added a 2-second default timeout for XMLRPC/extended pings, configurable as [ping,timeout].
No longer repeating the entire ping section if we had an HTTP error during a submission.
For now, dropping the bad item and continuing on with others. (Todo: individual retry and cleaner discards of blacklisted broken-for-now sites.)
Brion Vibber [Wed, 5 May 2010 00:11:43 +0000 (17:11 -0700)]
Avoid spewing giant debug backtrace into exception in certain OStatus subscription failure cases.
The code pattern 'new XXXException($e)' to chain exceptions doesn't actually work as intended, as exceptions are actually expecting a string message here.
This caused an implicit string conversion from HTTP_Request2_Exception, which is a PEAR_Exception, which defines an absurdly detailed __toString() method including a giant HTML table with a backtrace if you happen to be on a web request.
Simply passing $e->getMessage() instead clears this up, as we'll get the nice short message like 'Couldn't connect to tcp://blahblah:80'
Zach Copley [Tue, 4 May 2010 19:31:55 +0000 (12:31 -0700)]
Add Emacs Identica-mode to notice sources