Additional check to ensure that the owner of an activity is always the author
This commit is contained in:
		
					parent
					
						
							
								510032444f
							
						
					
				
			
			
				commit
				
					
						acf31ab64b
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -2349,6 +2349,12 @@ class DFRN
 | 
			
		|||
				if (Item::exists($condition)) {
 | 
			
		||||
					return false;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				// The owner of an activity must be the author
 | 
			
		||||
				$item["owner-name"] = $item["author-name"];
 | 
			
		||||
				$item["owner-link"] = $item["author-link"];
 | 
			
		||||
				$item["owner-avatar"] = $item["author-avatar"];
 | 
			
		||||
				$item["owner-id"] = $item["author-id"];
 | 
			
		||||
			} else {
 | 
			
		||||
				$is_like = false;
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue