Brion Vibber 
							
						 
					 
					
						
						
							
						
						7bdea95ccb 
					 
					
						
						
							
							Fix to make blowing of replies stream cache more consistent when receiving replies. (Was being done at mail notify time instead of at save time for local replies; now moved to reply save time internally so it can't get forgotten)  
						
						 
						
						
						
						
					 
					
						2010-04-23 06:55:46 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						df41287226 
					 
					
						
						
							
							Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-04-20 13:52:58 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						61098faf5d 
					 
					
						
						
							
							Merge branch 'master' of gitorious.org:statusnet/mainline into testing  
						
						 
						
						
						
						
					 
					
						2010-04-20 13:52:18 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						c48caa85e1 
					 
					
						
						
							
							Fix email notifications for @-replies that come via OStatus.  
						
						 
						
						... 
						
						
						
						* Moved notification sending from Notice::saveReplies to distrib queue handler, so it'll pull from the reply set we've saved regardless of how we got it.
* Set up gettext infrastructure for command-line scripts; gets localization mail notifications etc working from background queues.
* Adjusted locale switching: common_switch_locale() works at runtime for bg scripts, forces a message catalog update 
						
						
					 
					
						2010-04-20 13:49:29 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						f789928942 
					 
					
						
						
							
							Merge branch 'testing' into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-04-14 11:15:48 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						3da50c19df 
					 
					
						
						
							
							Merge branch 'master' into testing  
						
						 
						
						
						
						
					 
					
						2010-04-14 11:15:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						a21a172639 
					 
					
						
						
							
							Fix for "#foo !foo" in same notice failing during save, causing failout before distribution. Move saveGroups after saveTags when saving notices; groups may save additional tags, so need to be moved after so the check for duplicates actually works.  
						
						 
						
						
						
						
					 
					
						2010-04-14 11:11:02 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						d445b977fc 
					 
					
						
						
							
							move comment to correct place  
						
						 
						
						
						
						
					 
					
						2010-04-14 11:09:54 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						1eeb23e1e3 
					 
					
						
						
							
							Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x  
						
						 
						
						... 
						
						
						
						Conflicts:
	actions/confirmaddress.php 
						
						
					 
					
						2010-04-10 17:56:11 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						edd883d3b0 
					 
					
						
						
							
							Merge branch 'master' of gitorious.org:statusnet/mainline into testing  
						
						 
						
						
						
						
					 
					
						2010-04-10 17:54:37 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						71c828de89 
					 
					
						
						
							
							Allow blocking someone who's not currently subscribed to you (prevents seeing @-replies from them, or them subbing to you in future)  
						
						 
						
						
						
						
					 
					
						2010-04-10 17:52:40 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Siebrand Mazeland 
							
						 
					 
					
						
						
							
						
						af06c554a0 
					 
					
						
						
							
							* DB -> Database in message  
						
						 
						
						... 
						
						
						
						* some translator documentation added 
						
						
					 
					
						2010-04-11 01:08:51 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						6fb60fb57f 
					 
					
						
						
							
							Fix for conversation check in @-reply notification email; i18n cleanup on mail messages: fixed some bad gettext usage, added trans doc comments.  
						
						 
						
						
						
						
					 
					
						2010-04-09 12:02:11 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						d00942cce1 
					 
					
						
						
							
							Fix for conversation check in @-reply notification email; i18n cleanup on mail messages: fixed some bad gettext usage, added trans doc comments.  
						
						 
						
						
						
						
					 
					
						2010-04-09 11:56:27 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						ce40425533 
					 
					
						
						
							
							Merge branch 'master' of gitorious.org:statusnet/mainline  
						
						 
						
						
						
						
					 
					
						2010-04-09 14:06:24 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						9cb0dab270 
					 
					
						
						
							
							Run block checks on remote OStatus replies  
						
						 
						
						
						
						
					 
					
						2010-04-09 10:48:18 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						f5b00404d8 
					 
					
						
						
							
							Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-04-09 10:47:45 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						80bd77ced3 
					 
					
						
						
							
							Run block checks on remote OStatus replies  
						
						 
						
						
						
						
					 
					
						2010-04-09 10:46:18 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						76cce8a3c5 
					 
					
						
						
							
							Merge branch 'master' into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-04-07 10:46:23 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						08745e4eac 
					 
					
						
						
							
							Merge branch 'master' into testing  
						
						 
						
						
						
						
					 
					
						2010-04-07 10:45:44 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						82326a3b69 
					 
					
						
						
							
							show PEAR_Error message, not the object  
						
						 
						
						
						
						
					 
					
						2010-04-07 10:43:14 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						e4d934827b 
					 
					
						
						
							
							Merge branch 'testing' into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-04-02 15:48:39 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						ec24f283dd 
					 
					
						
						
							
							Don't save duplicate messages into a user's packed inbox. We've already got the packed box loaded at insert time, so we can simply unpack it and check before doing the update query.  
						
						 
						
						... 
						
						
						
						Should help with dupes that come in when inbox distrib jobs die and get restarted, etc.
Conflicts:
	classes/Inbox.php
Looks like this was implemented on master recently and not copied up to testing. Merging to my version on testing as I've added some doc comments and extracted a couple functions for future ease of use. 
						
						
					 
					
						2010-04-02 15:45:03 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						61394aa8ac 
					 
					
						
						
							
							Don't save duplicate messages into a user's packed inbox. We've already got the packed box loaded at insert time, so we can simply unpack it and check before doing the update query.  
						
						 
						
						... 
						
						
						
						Should help with dupes that come in when inbox distrib jobs die and get restarted, etc. 
						
						
					 
					
						2010-04-02 15:43:30 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						d844e6bde5 
					 
					
						
						
							
							Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-04-01 11:09:45 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						f1c01f9ead 
					 
					
						
						
							
							Temporary hack until notice_profile_id_idx is updated  
						
						 
						
						... 
						
						
						
						to (profile_id, id) instead of (profile_id, created, id).
It's been falling back to PRIMARY instead, which is really
very inefficient for a profile that hasn't posted in a few
months. Even though forcing the index will cause a filesort,
it's usually going to be better. Even for large profiles it
seems much faster than the badly-indexed query. 
						
						
					 
					
						2010-04-01 10:17:17 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						9f2cfd20f8 
					 
					
						
						
							
							Temporary hack until notice_profile_id_idx is updated  
						
						 
						
						... 
						
						
						
						to (profile_id, id) instead of (profile_id, created, id).
It's been falling back to PRIMARY instead, which is really
very inefficient for a profile that hasn't posted in a few
months. Even though forcing the index will cause a filesort,
it's usually going to be better. Even for large profiles it
seems much faster than the badly-indexed query. 
						
						
					 
					
						2010-04-01 10:15:40 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						9efe5393ff 
					 
					
						
						
							
							Revert "Revert "don't insert the same notice twice into an inbox""  
						
						 
						
						... 
						
						
						
						This reverts commit a09b27ff41 . 
						
						
					 
					
						2010-04-01 12:57:52 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						a09b27ff41 
					 
					
						
						
							
							Revert "don't insert the same notice twice into an inbox"  
						
						 
						
						... 
						
						
						
						This reverts commit 650074c648 . 
						
						
					 
					
						2010-04-01 12:52:26 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						650074c648 
					 
					
						
						
							
							don't insert the same notice twice into an inbox  
						
						 
						
						
						
						
					 
					
						2010-03-31 15:54:35 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						df9eb4164a 
					 
					
						
						
							
							Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-03-31 12:48:24 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						3ed88938b9 
					 
					
						
						
							
							Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing  
						
						 
						
						
						
						
					 
					
						2010-03-31 12:47:42 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						d3f995846b 
					 
					
						
						
							
							use Subscription::cancel() to cancel all subscriptions on block  
						
						 
						
						
						
						
					 
					
						2010-03-31 15:20:16 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						c1c7feedbd 
					 
					
						
						
							
							do complete unsubscribe process when deleting a user  
						
						 
						
						
						
						
					 
					
						2010-03-31 15:02:19 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						cfeb1bfa41 
					 
					
						
						
							
							Merge branch 'testing' into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-03-29 15:15:11 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						873b832827 
					 
					
						
						
							
							Merge branch 'master' into testing  
						
						 
						
						... 
						
						
						
						Conflicts:
	plugins/Blacklist/BlacklistPlugin.php 
						
						
					 
					
						2010-03-29 15:14:25 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						d44e5ac935 
					 
					
						
						
							
							Add $config['db']['annotate_queries'] option to include caller ID comments into queries. Comment can then be seen in process list, slow query logs on the server, aiding in tracking down unexpected slow queries.  
						
						 
						
						... 
						
						
						
						SELECT /* queuedaemon.php Ostatus_profile->processPost */ * FROM notice WHERE ( notice.uri = 'http://stormcloud.local/mublog2/notice/479' )
INSERT /* POST Notice::saveNew */ INTO notice (profile_id , content .... 
						
						
					 
					
						2010-03-29 13:14:11 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						f0d905112e 
					 
					
						
						
							
							Merge branch 'master' into 0.9.x  
						
						 
						
						... 
						
						
						
						Conflicts:
	lib/attachmentlist.php 
						
						
					 
					
						2010-03-28 15:25:02 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Evan Prodromou 
							
						 
					 
					
						
						
							
						
						65766a0ebe 
					 
					
						
						
							
							continue deleting even if user profile record is missing  
						
						 
						
						
						
						
					 
					
						2010-03-28 11:58:16 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nick Holliday 
							
						 
					 
					
						
						
							
						
						92ded7c6cb 
					 
					
						
						
							
							Fixes problem with IRC URLs showing as attachments  
						
						 
						
						
						
						
					 
					
						2010-03-26 18:16:44 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						ecb009bcf5 
					 
					
						
						
							
							Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x  
						
						 
						
						
						
						
					 
					
						2010-03-24 13:57:20 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						13d59e0c76 
					 
					
						
						
							
							fixup_deletions.php script to look for notices posted by now-deleted profiles and remove them.  
						
						 
						
						
						
						
					 
					
						2010-03-23 17:24:01 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						7277b59734 
					 
					
						
						
							
							Merge branch 'master' of git@gitorious.org:statusnet/mainline into testing  
						
						 
						
						
						
						
					 
					
						2010-03-23 12:13:32 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						44caa3a93f 
					 
					
						
						
							
							Consistently send Profiles into Fave::addNew()  
						
						 
						
						
						
						
					 
					
						2010-03-23 11:08:30 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						533a3bf6a3 
					 
					
						
						
							
							Consistently send Profiles into Fave::addNew()  
						
						 
						
						
						
						
					 
					
						2010-03-23 11:06:37 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						80b16c8499 
					 
					
						
						
							
							Don't add PHPSESSID parameter onto notice and conversation URIs if we save a notice during a session override.  
						
						 
						
						... 
						
						
						
						This was being triggered by welcomebot messages created at account creation time, then propagated through replies. 
						
						
					 
					
						2010-03-23 09:56:05 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						2d79455a1f 
					 
					
						
						
							
							Don't add PHPSESSID parameter onto notice and conversation URIs if we save a notice during a session override.  
						
						 
						
						... 
						
						
						
						This was being triggered by welcomebot messages created at account creation time, then propagated through replies. 
						
						
					 
					
						2010-03-23 09:54:24 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Craig Andrews 
							
						 
					 
					
						
						
							
						
						c85228eadc 
					 
					
						
						
							
							blowSubscriberCount and blowSubscriptionCount - no 's'  
						
						 
						
						
						
						
					 
					
						2010-03-22 14:22:18 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						5e54e7b55d 
					 
					
						
						
							
							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. 
						
						
					 
					
						2010-03-19 12:38:14 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brion Vibber 
							
						 
					 
					
						
						
							
						
						5c314c2288 
					 
					
						
						
							
							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. 
						
						
					 
					
						2010-03-19 11:18:27 -07:00