forked from mirror/pixelfed
Update AP Helpers
This commit is contained in:
parent
3f2decd5e3
commit
692d3c8d1b
1 changed files with 2 additions and 3 deletions
|
@ -24,6 +24,7 @@ use App\Jobs\StatusPipeline\NewStatusPipeline;
|
|||
use App\Util\ActivityPub\HttpSignature;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Services\ActivityPubDeliveryService;
|
||||
use App\Services\MediaPathService;
|
||||
|
||||
class Helpers {
|
||||
|
||||
|
@ -355,9 +356,7 @@ class Helpers {
|
|||
}
|
||||
$attachments = isset($data['object']) ? $data['object']['attachment'] : $data['attachment'];
|
||||
$user = $status->profile;
|
||||
$monthHash = hash('sha1', date('Y').date('m'));
|
||||
$userHash = hash('sha1', $user->id.(string) $user->created_at);
|
||||
$storagePath = "public/m/{$monthHash}/{$userHash}";
|
||||
$storagePath = MediaPathService::get($user, 2);
|
||||
$allowed = explode(',', config('pixelfed.media_types'));
|
||||
|
||||
foreach($attachments as $media) {
|
||||
|
|
Loading…
Reference in a new issue