forked from GNUsocial/gnu-social
		
	Move add to notice inboxes before cache clearing in hopes they will be
updated
This commit is contained in:
		@@ -155,6 +155,10 @@ class Notice extends Memcached_DataObject
 | 
			
		||||
		common_save_replies($notice);
 | 
			
		||||
		$notice->saveTags();
 | 
			
		||||
 | 
			
		||||
		// Add to notice inboxes
 | 
			
		||||
		
 | 
			
		||||
		$notice->addToInboxes();
 | 
			
		||||
		
 | 
			
		||||
		# Clear the cache for subscribed users, so they'll update at next request
 | 
			
		||||
		# XXX: someone clever could prepend instead of clearing the cache
 | 
			
		||||
 | 
			
		||||
@@ -162,7 +166,6 @@ class Notice extends Memcached_DataObject
 | 
			
		||||
			$notice->blowCaches();
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		$notice->addToInboxes();
 | 
			
		||||
		return $notice;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user