diff --git a/app/Http/Controllers/MicropubClientController.php b/app/Http/Controllers/MicropubClientController.php index 4c97b968..ebe28e14 100644 --- a/app/Http/Controllers/MicropubClientController.php +++ b/app/Http/Controllers/MicropubClientController.php @@ -33,9 +33,11 @@ class MicropubClientController extends Controller if ($url) { $indiewebUser = IndieWebUser::where('me', $url)->first(); } - $syndication = $this->parseSyndicationTargets($indiewebUser->syndication); - $mediaEndpoint = $indiewebUser->mediaEndpoint ?? null; - $mediaURLs = $request->session()->get('media-links'); + if ($indiewebUser) { + $syndication = $this->parseSyndicationTargets($indiewebUser->syndication); + $mediaEndpoint = $indiewebUser->mediaEndpoint ?? null; + $mediaURLs = $request->session()->get('media-links'); + } return view('micropub.create', compact('url', 'syndication', 'mediaEndpoint', 'mediaURLs')); } diff --git a/changelog.md b/changelog.md index 780a538d..426b8390 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,9 @@ # Changelog -## Version 0.5 (2017-06-18) +## Version 0.5.1 (2017-05-18) + - Fix issue on micropub create page when not logged in + +## Version 0.5 (2017-05-18) - Update micropub client to allow indieweb users - Update micropub endpoint to allow for entry updates - Add support for checkins, so we can use ownyourswarm diff --git a/deploy.sh b/deploy.sh index c16a2e4e..bf25d95d 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,7 +4,7 @@ echo "Putting the Laravel app in maintenance mode" php artisan down echo "Updating composer and dependencies" -composer self-update +sudo composer self-update composer install echo "Caching Laravel route and config files"