Update StatusTagsPipeline, fix object tags slug query

This commit is contained in:
Daniel Supernault 2023-09-25 05:20:04 -06:00
parent 9989d6c66f
commit 79b378cdb1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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