forked from GNUsocial/gnu-social
[ATTACHMENTS] Add event 'AttachmentFileInfo' to allow a plugin to override the file displayed
This commit is contained in:
@@ -161,8 +161,8 @@ class GSFile
|
||||
*/
|
||||
public static function getAttachmentFileInfo(int $id): array
|
||||
{
|
||||
$res = self::getFileInfo($id);
|
||||
$res['file_path'] = Common::config('attachments', 'dir') . $res['file_hash'];
|
||||
$res = self::getFileInfo($id);
|
||||
$res['filepath'] = Common::config('attachments', 'dir') . $res['file_hash'];
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user