Skip to content

Commit 60c86ce

Browse files
committed
Merge branch 'main' into feat/replace-blade-ui-kit-with-flux
2 parents d9ec91b + 5d20afc commit 60c86ce

File tree

13 files changed

+113
-732
lines changed

13 files changed

+113
-732
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ This is the repository for the [Laravel.io](http://laravel.io) community portal.
1919

2020
We'd like to thank these **amazing companies** for sponsoring us. If you are interested in becoming a sponsor, please visit <a href="https://github.com/sponsors/laravelio">the Laravel.io GitHub Sponsors page</a>.
2121

22+
- **[NativePHP for Mobile](https://nativephp.com/mobile?ref=laravel.io)**
2223
- **[Eventy](https://https://eventy.io/?utm_source=Laravel.io&utm_campaign=eventy&utm_medium=advertisement)**
2324
- [Forge](https://forge.laravel.com)
2425
- [Envoyer](https://envoyer.io)
2526
- [Fathom](https://usefathom.com)
2627
- [Tinkerwell](https://tinkerwell.app)
2728
- [BairesDev](https://www.bairesdev.com/sponsoring-open-source-projects/)
2829
- [N-iX](https://www.n-ix.com/)
30+
- [Litslink](https://litslink.com/)
2931

3032
## Requirements
3133

app/Http/Controllers/Articles/ArticlesController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function index(Request $request)
4242
->get();
4343

4444
$articles = Article::published()
45-
->notPinned($pinnedArticles)
4645
->latest('approved_at')
4746
->{$filter}();
4847

app/Markdown/MarkdownServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MarkdownServiceProvider extends ServiceProvider
1414
{
1515
public function register(): void
1616
{
17-
$this->app->singleton(Converter::class, function () {
17+
$this->app->singleton(Converter::class, function ($app, array $params = []) {
1818
$environment = new Environment([
1919
'html_input' => 'escape',
2020
'max_nesting_level' => 10,
@@ -29,7 +29,7 @@ public function register(): void
2929
'external_link' => [
3030
'internal_hosts' => config('app.host'),
3131
'open_in_new_window' => true,
32-
'nofollow' => 'external',
32+
'nofollow' => ($params['nofollow'] ?? true) ? 'external' : '',
3333
],
3434
]);
3535

app/Models/Article.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function body(): string
100100

101101
public function excerpt(int $limit = 100): string
102102
{
103-
return Str::limit(strip_tags(md_to_html($this->body())), $limit);
103+
return Str::limit(strip_tags(md_to_html($this->body(), false)), $limit);
104104
}
105105

106106
public function hasHeroImageAuthor(): bool
@@ -273,11 +273,6 @@ public function scopePinned(Builder $query): Builder
273273
return $query->where('is_pinned', true);
274274
}
275275

276-
public function scopeNotPinned(Builder $query, Collection $pinnedArticles): Builder
277-
{
278-
return $query->whereNotIn('id', $pinnedArticles->pluck('id'));
279-
}
280-
281276
public function scopeShared(Builder $query): Builder
282277
{
283278
return $query->whereNotNull('shared_at');

0 commit comments

Comments
 (0)