1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Merge pull request #4670 from pixelfed/staging

Update StatusTagsPipeline, fix object tags slug query
This commit is contained in:
daniel 2023-09-25 05:20:38 -06:00 committed by GitHub
commit d5baf2627a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,14 +84,12 @@ class StatusTagsPipeline implements ShouldQueue
if(!$hashtag) { if(!$hashtag) {
$hashtag = Hashtag::updateOrCreate([ $hashtag = Hashtag::updateOrCreate([
'slug' => str_slug($name, '-', false), 'slug' => str_slug($name, '-', false),
],[
'name' => $name 'name' => $name
]); ]);
} }
} else { } else {
$hashtag = Hashtag::updateOrCreate([ $hashtag = Hashtag::updateOrCreate([
'slug' => str_slug($name, '-', false), 'slug' => str_slug($name, '-', false),
],[
'name' => $name 'name' => $name
]); ]);
} }