forked from GNUsocial/gnu-social
		
	[COMPONENT][Link] Even if everything else in Posting fails, no reason to discard the finding about the Link
This commit is contained in:
		@@ -163,7 +163,7 @@ class Link extends Entity
 | 
				
			|||||||
                    'url_hash' => $url_hash,
 | 
					                    'url_hash' => $url_hash,
 | 
				
			||||||
                    'mimetype' => $headers['content-type'][0] ?? null,
 | 
					                    'mimetype' => $headers['content-type'][0] ?? null,
 | 
				
			||||||
                ]);
 | 
					                ]);
 | 
				
			||||||
                DB::persist($link);
 | 
					                DB::wrapInTransaction(fn () => DB::persist($link));
 | 
				
			||||||
                Event::handle('LinkStoredNew', [&$link]);
 | 
					                Event::handle('LinkStoredNew', [&$link]);
 | 
				
			||||||
                return $link;
 | 
					                return $link;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user