From 221f1f449d8d9ac9e835e8366ce29b9c59dbcd15 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 29 Jun 2016 15:28:23 +0100 Subject: [PATCH] Look for `syndicate-to` when deciding wether to syndicate to twitter --- app/Services/NoteService.php | 6 +++--- changelog.md | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Services/NoteService.php b/app/Services/NoteService.php index defa5330..4be6fe6d 100644 --- a/app/Services/NoteService.php +++ b/app/Services/NoteService.php @@ -48,11 +48,11 @@ class NoteService $this->dispatch(new SendWebMentions($note)); if (//micropub request, syndication sent as array - (is_array($request->input('mp-syndicate-to')) + (is_array($request->input('syndicate-to')) && - (in_array('twitter.com/jonnybarnes', $request->input('mp-syndicate-to'))) + (in_array('twitter.com/jonnybarnes', $request->input('syndicate-to'))) || //micropub request, syndication sent as string - ($request->input('mp-syndicate-to') == 'twitter.com/jonnybarnes') + ($request->input('syndicate-to') == 'twitter.com/jonnybarnes') || //local admin cp request ($request->input('twitter') == true)) ) { diff --git a/changelog.md b/changelog.md index e1251433..e718feb1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version {next} + - Fix an issue with dispatching the syndication job + ## Version 0.0.6.2 (2016-06-28) - Fix an issue with sending webmentions