Add (badge)

This commit is contained in:
2023-11-24 19:15:48 +08:00
parent 962c8f52ef
commit c30e08996d
7 changed files with 90 additions and 96 deletions

View File

@@ -62,10 +62,9 @@
for ($i = 1; $i <= $last_record->id; $i++) {
$rss_post = RssPost::find($i);
if (!is_null($rss_post))
{
$rss_post->post_domain = get_domain_from_url($rss_post->post_url);
$rss_post->save();
if (! is_null($rss_post)) {
$rss_post->post_domain = get_domain_from_url($rss_post->post_url);
$rss_post->save();
}
}