1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-11 21:14:02 +00:00
This commit is contained in:
Samuel Štancl 2022-01-07 17:45:22 +01:00 committed by GitHub
parent 179261fceb
commit 1fb4afb503
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ class WeeklyThread extends Command
// 1448992205138444334
$id = $this->extractID($url);
$slug = 'weekly-thread-2021-' . $week;
$slug = 'weekly-thread-2022-' . $week;
Tip::where('thread_slug', $slug)->delete();
Thread::where('slug', $slug)->delete();
@ -35,7 +35,7 @@ class WeeklyThread extends Command
/** @var Thread $thread */
$thread = Thread::create([
'slug' => $slug,
'title' => "Weekly thread #{$week} of 2021",
'title' => "Weekly thread #{$week} of 2022",
'tweet_id' => $id,
'author_username' => 'archtechx',
'content' => $tweet->text,