Evan Prodromou [Sat, 20 Feb 2010 18:23:08 +0000 (13:23 -0500)]
Add a library to mint tag URIs
We've been making pretty crummy tag: URIs for a while. We should
continue to favor HTTP URIs, since it's nice to be able to discover
things about an object you've shared the ID of. Where that's not
possible, this makes nicer tag URIs.
Evan Prodromou [Sat, 20 Feb 2010 17:03:32 +0000 (12:03 -0500)]
Add events for favor and disfavor
Added events to core code for when someone favors or disfavors a
notice.
Evan Prodromou [Sat, 20 Feb 2010 16:48:42 +0000 (11:48 -0500)]
add hooks for OStatus notification on subscribe/unsubscribe
Evan Prodromou [Sat, 20 Feb 2010 16:38:05 +0000 (11:38 -0500)]
adjust URI, URL, and location in Ostatus_profile::processPost
Evan Prodromou [Sat, 20 Feb 2010 16:35:01 +0000 (11:35 -0500)]
Add HTMLPurifier to extlib
HTMLPurifier defangs arbitrary submitted HTML. We're using it in the
OStatus plugin, but it may be valuable for other parts of the codebase
(I think OEmbed might benefit, for example).
Evan Prodromou [Sat, 20 Feb 2010 16:17:54 +0000 (11:17 -0500)]
Cool bug! Technically good PHP syntax
Evan Prodromou [Sat, 20 Feb 2010 16:12:43 +0000 (11:12 -0500)]
Move some salmon processing to a superclass
Moved some salmon processing to a superclass so we could handle group
salmon posts, too.
Brion Vibber [Sat, 20 Feb 2010 01:01:38 +0000 (17:01 -0800)]
OStatus: Salmon notifications now being generated moderately correctly. :) Needs to be an <entry> not a <feed>.
Brion Vibber [Sat, 20 Feb 2010 00:21:17 +0000 (16:21 -0800)]
OStatus: sub/unsub notifications working again. Fixed up autodetection of feed info at profile setup time
Evan Prodromou [Fri, 19 Feb 2010 21:55:24 +0000 (16:55 -0500)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Conflicts:
plugins/OStatus/actions/salmon.php
Evan Prodromou [Fri, 19 Feb 2010 21:37:07 +0000 (16:37 -0500)]
some more salmon stuff
Brion Vibber [Fri, 19 Feb 2010 20:08:07 +0000 (12:08 -0800)]
OStatus: hooked up follow/unfollow events on Salmon endpoint to create/destroy remote subscriber relationships
Brion Vibber [Fri, 19 Feb 2010 18:29:06 +0000 (10:29 -0800)]
OStatus: fix up Salmon endpoint detection/saving, timestamp fixes.
Evan Prodromou [Fri, 19 Feb 2010 13:31:46 +0000 (08:31 -0500)]
remove unused subs_(un)subscribe_user functions
Evan Prodromou [Fri, 19 Feb 2010 13:31:20 +0000 (08:31 -0500)]
replace calls to subs_(un)subscribe_user with Subscription methods
Sarven Capadisli [Fri, 19 Feb 2010 13:22:25 +0000 (14:22 +0100)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Evan Prodromou [Fri, 19 Feb 2010 13:16:45 +0000 (08:16 -0500)]
Refactor subs_* functions for remote use
The subs_* functions in subs.php have made a lot of assumptions
about users versus profiles. I've refactored the functions to
be methods of the Subscription class instead, and to use Profile
objects throughout.
Some of the checks for blocks or existing subscriptions depended
on users or profiles, so I've moved those methods around a bit.
I've left stubs for the subs_* functions until we get time to replace
them.
Sarven Capadisli [Fri, 19 Feb 2010 12:13:05 +0000 (13:13 +0100)]
Using inlineScript instead for clickjacking check
Sarven Capadisli [Fri, 19 Feb 2010 12:03:26 +0000 (13:03 +0100)]
Only load json2.js if native JSON is not supported
Evan Prodromou [Fri, 19 Feb 2010 03:18:14 +0000 (22:18 -0500)]
add ActivityContext class and test it
Evan Prodromou [Fri, 19 Feb 2010 03:13:47 +0000 (22:13 -0500)]
add type='text/html' to alternate link in Notice Atom
Brion Vibber [Thu, 18 Feb 2010 21:22:21 +0000 (21:22 +0000)]
OStatus refactoring to clean up profile vs feed and fix up subscription issues.
PuSH subscription maintenance broken back out to FeedSub, letting Ostatus_profile deal with the profile level (user or group, with unique id URI)
Brion Vibber [Thu, 18 Feb 2010 18:22:02 +0000 (18:22 +0000)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Brion Vibber [Thu, 18 Feb 2010 18:20:48 +0000 (18:20 +0000)]
OStatus sub/unsub updates:
- fix for PuSH unsub verification
- send Salmon notification on unsub
Sarven Capadisli [Thu, 18 Feb 2010 17:12:47 +0000 (18:12 +0100)]
Minor adjustment to edit icon position
Sarven Capadisli [Thu, 18 Feb 2010 17:12:08 +0000 (18:12 +0100)]
Fixes long strings from not breaking
Evan Prodromou [Thu, 18 Feb 2010 12:11:20 +0000 (07:11 -0500)]
always distribute to inbox of author immediately
Evan Prodromou [Thu, 18 Feb 2010 11:36:47 +0000 (06:36 -0500)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Evan Prodromou [Thu, 18 Feb 2010 11:36:32 +0000 (06:36 -0500)]
more work on salmon
Brion Vibber [Thu, 18 Feb 2010 00:52:13 +0000 (16:52 -0800)]
Merge branch 'master' into testing
Brion Vibber [Thu, 18 Feb 2010 00:49:00 +0000 (16:49 -0800)]
Queues: redid the breakout control model so we can start up and subscribe to queues without running through the complete site list, which is ok at 1k sites but too slow at 10k.
All breakout queues that we're going to need to listen to now need to be explicitly listed in $config['queue']['breakout'].
Until XMPP is moved to component model, this setting will let the individual processes work with their own queues:
$config['queue']['breakout'][] = 'xmpp/xmppout/' . $config['site']['nickname'];
Zach Copley [Wed, 17 Feb 2010 20:53:16 +0000 (20:53 +0000)]
Twitter bridge - fix for Ticket #2192
Zach Copley [Wed, 17 Feb 2010 19:24:38 +0000 (19:24 +0000)]
Better logging for Twitter bridge account linking process
Zach Copley [Tue, 16 Feb 2010 06:12:08 +0000 (06:12 +0000)]
Upgrade Twitter bridge to use OAuth 1.0a. It's more secure, and allows
us to automatically send in a callback url instead of having to manually
configure one for each StatusNet instance.
Zach Copley [Wed, 17 Feb 2010 20:53:16 +0000 (20:53 +0000)]
Twitter bridge - fix for Ticket #2192
Zach Copley [Wed, 17 Feb 2010 19:24:38 +0000 (19:24 +0000)]
Better logging for Twitter bridge account linking process
Brion Vibber [Wed, 17 Feb 2010 18:13:35 +0000 (10:13 -0800)]
Merge branch 'master' into testing
Brion Vibber [Wed, 17 Feb 2010 18:12:37 +0000 (10:12 -0800)]
Fix exception on bad plugin load
Craig Andrews [Wed, 17 Feb 2010 17:02:59 +0000 (12:02 -0500)]
parse_url returns an associative array - not an object
Brion Vibber [Wed, 17 Feb 2010 17:58:34 +0000 (09:58 -0800)]
PostDebug plugin - saves POST data to debug log or directory to help debug form submission and server-to-server communications.
Some sensitive items are sanitized but not all - don't just shove out the log results publicly!
Zach Copley [Wed, 17 Feb 2010 09:12:13 +0000 (01:12 -0800)]
- Set the root of a new local conversation to a new conversation.id
- Output conversation URIs from conversation.uri
Zach Copley [Wed, 17 Feb 2010 09:11:14 +0000 (01:11 -0800)]
- conversation.uri needs to be nullable
- factory method for creating new local conversations
Zach Copley [Wed, 17 Feb 2010 07:30:08 +0000 (23:30 -0800)]
New Conversation DO to handle remote notices as conversation roots
Zach Copley [Wed, 17 Feb 2010 04:14:33 +0000 (20:14 -0800)]
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
* 'testing' of gitorious.org:statusnet/mainline:
OStatus: override source link with the source domain and link to original message
OStatus: moving parts of profile processing to Activity from feedmunger. Pausing before refactoring DB schema a bit to clean up feed vs person vs group info
Zach Copley [Wed, 17 Feb 2010 04:13:39 +0000 (20:13 -0800)]
More sensical profile::getUri()
Brion Vibber [Wed, 17 Feb 2010 02:16:03 +0000 (02:16 +0000)]
OStatus: override source link with the source domain and link to original message
Brion Vibber [Wed, 17 Feb 2010 01:52:57 +0000 (01:52 +0000)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Brion Vibber [Wed, 17 Feb 2010 01:49:49 +0000 (01:49 +0000)]
OStatus: moving parts of profile processing to Activity from feedmunger. Pausing before refactoring DB schema a bit to clean up feed vs person vs group info
Zach Copley [Wed, 17 Feb 2010 00:23:57 +0000 (16:23 -0800)]
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
* 'testing' of gitorious.org:statusnet/mainline:
OStatus: migrated notice parsing to use Activity helper classes; on the way to killing FeedMunger
Zach Copley [Wed, 17 Feb 2010 00:22:58 +0000 (16:22 -0800)]
Take remote profiles into account when looking up canonical profile URIs
Brion Vibber [Tue, 16 Feb 2010 23:31:11 +0000 (23:31 +0000)]
OStatus: migrated notice parsing to use Activity helper classes; on the way to killing FeedMunger
Brion Vibber [Tue, 16 Feb 2010 23:04:39 +0000 (23:04 +0000)]
OStatus: check only direct children in ActivityUtil::child; fixes pulling actor's info when we wanted post info
Brion Vibber [Tue, 16 Feb 2010 22:04:57 +0000 (22:04 +0000)]
OStatus: temporary output mode hack for apitimelineuser until PuSH feed generation is updated to use the shared code instead of output buffering
Brion Vibber [Tue, 16 Feb 2010 22:03:24 +0000 (22:03 +0000)]
OStatus: fix up some recent regressions in subscription setup; fix state checks and verification token, and avatar save on setup. Needs updates for new atom code next...
Brion Vibber [Tue, 16 Feb 2010 20:11:48 +0000 (20:11 +0000)]
OStatus: fix for low-level remote subscribe
Zach Copley [Tue, 16 Feb 2010 19:32:10 +0000 (11:32 -0800)]
Add rel="avatar" to img links in <activity:actor> stanzas
Evan Prodromou [Tue, 16 Feb 2010 17:49:54 +0000 (12:49 -0500)]
restructure Activity classes to push more DOM stuff to ActivityUtils
Evan Prodromou [Tue, 16 Feb 2010 17:46:02 +0000 (12:46 -0500)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Evan Prodromou [Tue, 16 Feb 2010 17:45:00 +0000 (12:45 -0500)]
add a FIXME to Profile
Brion Vibber [Tue, 16 Feb 2010 17:22:02 +0000 (09:22 -0800)]
Merge branch 'master' into testing
Conflicts:
lib/stompqueuemanager.php
Brion Vibber [Tue, 16 Feb 2010 17:01:59 +0000 (09:01 -0800)]
Stomp queue restructuring for mass scalability:
- Multiplexing queues into groups and for multiple sites.
- Sharing vs breakout configurable per site and per queue via $config['queue']['breakout']
- Detect how many times a message is redelivered, discard if it's killed too many daemons
- count configurable with $config['queue']['max_retries']
- can dump the items to files in $config['queue']['dead_letter_dir']
Queue daemon memory & resource leak fixes:
- avoid unnecessary reconnections to memcached server (switch persistent connections back in on second initialization, assuming it's child process)
- monkey-patch for leaky .ini loads in DB_DataObject::databaseStructure() - was leaking 200k per active switch
- applied leak fixes to Status_network as well, using intermediate base Safe_DataObject for both it and Memcache_DataObject
Misc queue fixes:
- correct handling of child processes exiting due to signal termination instead of regular exit
- shutdown instead of infinite respawn loop if we're already past the soft memory limit at startup
- Added --all option for xmppdaemon... still opens one xmpp connection per site that has xmpp active
Cache updates:
- add Cache::increment() method with native support for memcached atomic increment
Brion Vibber [Tue, 16 Feb 2010 17:15:29 +0000 (09:15 -0800)]
Pull fix from testing branch: use new encoding funcs w/ stomp queues
Sarven Capadisli [Tue, 16 Feb 2010 16:36:45 +0000 (17:36 +0100)]
Minor optimization to only bind an hover event to the notice at hand.
Sarven Capadisli [Tue, 16 Feb 2010 16:10:24 +0000 (17:10 +0100)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Sarven Capadisli [Tue, 16 Feb 2010 16:09:34 +0000 (17:09 +0100)]
Fix to allow any notice item with an attachment to use the overlay view
Evan Prodromou [Tue, 16 Feb 2010 16:06:10 +0000 (11:06 -0500)]
move some nickname-guessing code to lib/util.php from OpenID
Evan Prodromou [Tue, 16 Feb 2010 15:18:23 +0000 (10:18 -0500)]
add a couple of FIXME comments
Evan Prodromou [Tue, 16 Feb 2010 14:58:33 +0000 (09:58 -0500)]
change find() to staticGet() to use cache
Zach Copley [Tue, 16 Feb 2010 06:12:08 +0000 (06:12 +0000)]
Upgrade Twitter bridge to use OAuth 1.0a. It's more secure, and allows
us to automatically send in a callback url instead of having to manually
configure one for each StatusNet instance.
Brion Vibber [Mon, 15 Feb 2010 23:19:16 +0000 (15:19 -0800)]
Temporary debug hack tracking down 'revoked accesstoken' issue with OMB posts
Zach Copley [Mon, 15 Feb 2010 22:13:10 +0000 (22:13 +0000)]
Use static class method for looking up Twitter user
Zach Copley [Mon, 15 Feb 2010 22:13:10 +0000 (22:13 +0000)]
Use static class method for looking up Twitter user
Zach Copley [Mon, 15 Feb 2010 21:53:49 +0000 (21:53 +0000)]
Twitter-bridge: lookup old foreign_user by primary key not url
Zach Copley [Mon, 15 Feb 2010 21:53:49 +0000 (21:53 +0000)]
Twitter-bridge: lookup old foreign_user by primary key not url
Zach Copley [Mon, 15 Feb 2010 21:23:26 +0000 (21:23 +0000)]
Better log msgs. Removed debugging statement.
Zach Copley [Mon, 15 Feb 2010 21:23:26 +0000 (21:23 +0000)]
Better log msgs. Removed debugging statement.
Zach Copley [Mon, 15 Feb 2010 21:14:32 +0000 (21:14 +0000)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Zach Copley [Mon, 15 Feb 2010 21:10:45 +0000 (21:10 +0000)]
Fix for regression introduced with my last update to the
TwitterStatusFetcher: the Twitter bridge was not saving a foreign user
record when making a foreign link.
Zach Copley [Mon, 15 Feb 2010 21:10:45 +0000 (21:10 +0000)]
Fix for regression introduced with my last update to the
TwitterStatusFetcher: the Twitter bridge was not saving a foreign user
record when making a foreign link.
Sarven Capadisli [Mon, 15 Feb 2010 20:34:41 +0000 (21:34 +0100)]
Updated the base stylesheet for minor fixes (which relied on indenting)
Sarven Capadisli [Mon, 15 Feb 2010 20:21:25 +0000 (21:21 +0100)]
Added another single whitespace
Sarven Capadisli [Mon, 15 Feb 2010 19:41:46 +0000 (20:41 +0100)]
Added single whitespace to separate inline text words.
Evan Prodromou [Sun, 14 Feb 2010 18:19:32 +0000 (13:19 -0500)]
test parsing a default atom feed for activities
Evan Prodromou [Sun, 14 Feb 2010 17:12:47 +0000 (12:12 -0500)]
update activity and salmon for previous commit
Evan Prodromou [Sun, 14 Feb 2010 17:09:07 +0000 (12:09 -0500)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Evan Prodromou [Sun, 14 Feb 2010 17:08:09 +0000 (12:08 -0500)]
More complete activity parsing
Began the process of actually digging up activity information
from an Atom entry. Added a test script to make sure parsing
is working right.
Sarven Capadisli [Sat, 13 Feb 2010 19:28:39 +0000 (20:28 +0100)]
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Sarven Capadisli [Sat, 13 Feb 2010 19:28:05 +0000 (20:28 +0100)]
Dialogbox for OStatus remote subscription
Sarven Capadisli [Sat, 13 Feb 2010 18:07:21 +0000 (19:07 +0100)]
Added dialogbox styles for OStatus subscribe form
Sarven Capadisli [Sat, 13 Feb 2010 17:49:14 +0000 (18:49 +0100)]
Added XHR channel for OStatus Subscribe button
Sarven Capadisli [Sat, 13 Feb 2010 17:46:10 +0000 (18:46 +0100)]
Updated feed subscription form markup
Sarven Capadisli [Sat, 13 Feb 2010 17:44:41 +0000 (18:44 +0100)]
Updated OStatus form markup
Sarven Capadisli [Sat, 13 Feb 2010 17:42:00 +0000 (18:42 +0100)]
Using the new remote subscription event and updated subscribe label
Sarven Capadisli [Sat, 13 Feb 2010 17:40:36 +0000 (18:40 +0100)]
Added event hook to remote subscription
Evan Prodromou [Sat, 13 Feb 2010 17:39:15 +0000 (12:39 -0500)]
Merge branch 'ssleverything' into testing
Zach Copley [Sat, 13 Feb 2010 03:00:35 +0000 (19:00 -0800)]
Add OStatus PuSH hub and Salmon links back into user and group feeds
Brion Vibber [Fri, 12 Feb 2010 23:30:23 +0000 (15:30 -0800)]
fix for Atom notice output: correct check against conversation & current id
Brion Vibber [Fri, 12 Feb 2010 23:24:15 +0000 (15:24 -0800)]
Session fix for PHP 5.3 configurations where cookies are excluded from $_REQUEST via request_order in php.ini (Fedora 12, MacPorts known to be affected)
Zach Copley [Fri, 12 Feb 2010 20:22:12 +0000 (12:22 -0800)]
Initial upgraded Atom output for group timelines
Brion Vibber [Fri, 12 Feb 2010 19:15:12 +0000 (11:15 -0800)]
PHP 5.3 compatibility hack for DB_DataObject
statusnet.links.ini file could not be read anymore due to the entry for nonce containing a comma in its key value.
PHP's parse_ini_file() function no longer allows commas in keys, and rejects the *ENTIRE FILE* if it's present, breaking various automatic joins.