Add (rss post): domain

This commit is contained in:
2023-11-23 21:30:33 +08:00
parent e4eb51b2b7
commit 0a1987f593
4 changed files with 47 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ public function handle(): void
if (is_null($rss_post)) {
$rss_post = new RssPost;
$rss_post->post_url = $raw_post->link;
$rss_post->post_domain = get_domain_from_url($raw_post->link);
$rss_post->source = $raw_post->source;
$rss_post->source_url = $raw_post->source_url;
$rss_post->title = remove_newline($raw_post->title);