diff --git a/app/Http/Controllers/CollectionController.php b/app/Http/Controllers/CollectionController.php index 6ddba8239..7a753d6aa 100644 --- a/app/Http/Controllers/CollectionController.php +++ b/app/Http/Controllers/CollectionController.php @@ -237,6 +237,9 @@ class CollectionController extends Controller return Collection::whereProfileId($profile->id) ->whereIn('visibility', $visibility) + ->when(!$owner, function($q, $owner) { + return $q->whereNotNull('published_at'); + }) ->orderByDesc('id') ->paginate(9) ->map(function($collection) { diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 7dbda1191..147d95842 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -81,9 +81,7 @@ class ProfileController extends Controller 'list' => $settings->show_profile_followers ] ]; - $ui = $request->has('ui') && $request->input('ui') == 'memory' ? 'profile.memory' : 'profile.show'; - - return view($ui, compact('profile', 'settings')); + return view('profile.show', compact('profile', 'settings')); } else { $key = 'profile:settings:' . $user->id; $ttl = now()->addHours(6); diff --git a/app/Jobs/InboxPipeline/DeleteWorker.php b/app/Jobs/InboxPipeline/DeleteWorker.php index bed75f1df..5ec791301 100644 --- a/app/Jobs/InboxPipeline/DeleteWorker.php +++ b/app/Jobs/InboxPipeline/DeleteWorker.php @@ -213,6 +213,9 @@ class DeleteWorker implements ShouldQueue 'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org', ])->get($actor->remote_url); $res = json_decode($res->body(), true, 8); + if(!isset($res['publicKey'], $res['publicKey']['id'])) { + return; + } if($res['publicKey']['id'] !== $actor->key_id) { return; } diff --git a/app/Util/Site/Config.php b/app/Util/Site/Config.php index f78e3e433..c745c2031 100644 --- a/app/Util/Site/Config.php +++ b/app/Util/Site/Config.php @@ -7,10 +7,10 @@ use Illuminate\Support\Str; class Config { - const CACHE_KEY = 'api:site:configuration:_v0.5'; + const CACHE_KEY = 'api:site:configuration:_v0.6'; public static function get() { - return Cache::remember(self::CACHE_KEY, 86400, function() { + return Cache::remember(self::CACHE_KEY, 900, function() { return [ 'open_registration' => (bool) config_cache('pixelfed.open_registration'), 'uploader' => [ @@ -51,12 +51,15 @@ class Config { ], 'features' => [ + 'timelines' => [ + 'local' => true, + 'network' => (bool) config('federation.network_timeline'), + ], 'mobile_apis' => (bool) config_cache('pixelfed.oauth_enabled'), - 'circles' => false, 'stories' => (bool) config_cache('instance.stories.enabled'), 'video' => Str::contains(config_cache('pixelfed.media_types'), 'video/mp4'), 'import' => [ - 'instagram' => config_cache('pixelfed.import.instagram.enabled'), + 'instagram' => (bool) config_cache('pixelfed.import.instagram.enabled'), 'mastodon' => false, 'pixelfed' => false ], diff --git a/app/Util/Site/Nodeinfo.php b/app/Util/Site/Nodeinfo.php index fbcc2ee8e..3cf3b1568 100644 --- a/app/Util/Site/Nodeinfo.php +++ b/app/Util/Site/Nodeinfo.php @@ -33,6 +33,8 @@ class Nodeinfo { return Status::whereLocal(true)->count(); }); + $features = [ 'features' => \App\Util\Site\Config::get()['features'] ]; + return [ 'metadata' => [ 'nodeName' => config_cache('app.name'), @@ -40,7 +42,7 @@ class Nodeinfo { 'homepage' => 'https://pixelfed.org', 'repo' => 'https://github.com/pixelfed/pixelfed', ], - 'config' => \App\Util\Site\Config::get() + 'config' => $features ], 'protocols' => [ 'activitypub', diff --git a/config/horizon.php b/config/horizon.php index c089fd901..f7fd81c29 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -175,6 +175,7 @@ return [ 'memory' => 128, 'tries' => 3, 'nice' => 0, + 'timeout' => 60 ], ], @@ -187,6 +188,7 @@ return [ 'memory' => 128, 'tries' => 3, 'nice' => 0, + 'timeout' => 60 ], ], ], diff --git a/public/js/daci-m9we36ik.js b/public/js/daci-m9we36ik.js index 436e688ea..9de0d4f27 100644 Binary files a/public/js/daci-m9we36ik.js and b/public/js/daci-m9we36ik.js differ diff --git a/public/js/dffc-m9we36ik.js b/public/js/dffc-m9we36ik.js index 37539370a..52a0a6f21 100644 Binary files a/public/js/dffc-m9we36ik.js and b/public/js/dffc-m9we36ik.js differ diff --git a/public/js/dmyh-m9we36ik.js b/public/js/dmyh-m9we36ik.js index 4d225f46d..42989c60e 100644 Binary files a/public/js/dmyh-m9we36ik.js and b/public/js/dmyh-m9we36ik.js differ diff --git a/public/js/dmym-m9we36ik.js b/public/js/dmym-m9we36ik.js index bd0426c5b..4e075efe1 100644 Binary files a/public/js/dmym-m9we36ik.js and b/public/js/dmym-m9we36ik.js differ diff --git a/public/js/dsfc-m9we36ik.js b/public/js/dsfc-m9we36ik.js index 9582843a2..8786666cf 100644 Binary files a/public/js/dsfc-m9we36ik.js and b/public/js/dsfc-m9we36ik.js differ diff --git a/public/js/dssc-m9we36ik.js b/public/js/dssc-m9we36ik.js index f2804b5be..2eb70b8f1 100644 Binary files a/public/js/dssc-m9we36ik.js and b/public/js/dssc-m9we36ik.js differ diff --git a/public/js/home-m9we36ik.js b/public/js/home-m9we36ik.js index 7fb1dde10..6c0144d56 100644 Binary files a/public/js/home-m9we36ik.js and b/public/js/home-m9we36ik.js differ diff --git a/public/js/post-m9we36ik.js b/public/js/post-m9we36ik.js index a70e69b00..4d36dea09 100644 Binary files a/public/js/post-m9we36ik.js and b/public/js/post-m9we36ik.js differ diff --git a/public/js/profile-m9we36ik.js b/public/js/profile-m9we36ik.js index 060a836e9..bf0465cc8 100644 Binary files a/public/js/profile-m9we36ik.js and b/public/js/profile-m9we36ik.js differ diff --git a/public/js/profile.js b/public/js/profile.js index f8d956f1a..7a26e3ef8 100644 Binary files a/public/js/profile.js and b/public/js/profile.js differ diff --git a/public/js/spa.js b/public/js/spa.js index 148f12660..8bad2312a 100644 Binary files a/public/js/spa.js and b/public/js/spa.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 54481238e..f532b3088 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/views/profile/memory.blade.php b/resources/views/profile/memory.blade.php deleted file mode 100644 index 7e23972fd..000000000 --- a/resources/views/profile/memory.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('layouts.app',['title' => $profile->username . " on " . config('app.name')]) - -@section('content') -@if (session('error')) -