mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
2022
This commit is contained in:
parent
179261fceb
commit
1fb4afb503
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ class WeeklyThread extends Command
|
||||||
// 1448992205138444334
|
// 1448992205138444334
|
||||||
$id = $this->extractID($url);
|
$id = $this->extractID($url);
|
||||||
|
|
||||||
$slug = 'weekly-thread-2021-' . $week;
|
$slug = 'weekly-thread-2022-' . $week;
|
||||||
|
|
||||||
Tip::where('thread_slug', $slug)->delete();
|
Tip::where('thread_slug', $slug)->delete();
|
||||||
Thread::where('slug', $slug)->delete();
|
Thread::where('slug', $slug)->delete();
|
||||||
|
|
@ -35,7 +35,7 @@ class WeeklyThread extends Command
|
||||||
/** @var Thread $thread */
|
/** @var Thread $thread */
|
||||||
$thread = Thread::create([
|
$thread = Thread::create([
|
||||||
'slug' => $slug,
|
'slug' => $slug,
|
||||||
'title' => "Weekly thread #{$week} of 2021",
|
'title' => "Weekly thread #{$week} of 2022",
|
||||||
'tweet_id' => $id,
|
'tweet_id' => $id,
|
||||||
'author_username' => 'archtechx',
|
'author_username' => 'archtechx',
|
||||||
'content' => $tweet->text,
|
'content' => $tweet->text,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue