From 5edcb5ee4eec7fdbcc569606b609321f59bc2627 Mon Sep 17 00:00:00 2001 From: jk Date: Tue, 7 Sep 2021 15:36:42 +0100 Subject: [PATCH] tryin to add syndication to view --- controllers/editor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/editor.php b/controllers/editor.php index 86da9b0..191885a 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -3,7 +3,8 @@ $app->get('/editor', function() use($app) { $user = require_login($app, false); $html = $app->render('editor.php', [ - 'user' => $user + 'user' => $user, + 'syndication_targets' => json_decode($user->syndication_targets, true) ]); $app->response()->body($html); });