mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update StatusTagsPipeline, fix object tags slug query
This commit is contained in:
parent
9989d6c66f
commit
79b378cdb1
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue