forked from GNUsocial/gnu-social
		
	[COMPONENTS][Avatar] Delete correct cache key on avatar update
This commit is contained in:
		@@ -68,8 +68,8 @@ class Avatar extends Component
 | 
				
			|||||||
        foreach (['full', 'big', 'medium', 'small'] as $size) {
 | 
					        foreach (['full', 'big', 'medium', 'small'] as $size) {
 | 
				
			||||||
            foreach ([Router::ABSOLUTE_PATH, Router::ABSOLUTE_URL] as $type) {
 | 
					            foreach ([Router::ABSOLUTE_PATH, Router::ABSOLUTE_URL] as $type) {
 | 
				
			||||||
                Cache::delete("avatar-url-{$actor_id}-{$size}-{$type}");
 | 
					                Cache::delete("avatar-url-{$actor_id}-{$size}-{$type}");
 | 
				
			||||||
                Cache::delete("avatar-file-info-{$actor_id}-{$size}-{$type}");
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            Cache::delete("avatar-file-info-{$actor_id}-{$size}");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return Event::next;
 | 
					        return Event::next;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user