From 0347f4fc66d8769822eb0a3bdcfff0100fed446c Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 31 Jul 2022 16:01:56 +0000 Subject: [PATCH] Remove test code --- src/Model/Item.php | 2 +- src/Module/Api/Mastodon/PushSubscription.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index b12eab948..91fd59d80 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -124,7 +124,7 @@ class Item // All fields in the item table const ITEM_FIELDLIST = ['id', 'uid', 'parent', 'uri', 'parent-uri', 'thr-parent', 'guid', 'uri-id', 'parent-uri-id', 'thr-parent-id', 'conversation', 'vid', - 'contact-id', 'wall', 'gravity', 'extid', 'psid', + 'contact-id', 'wall', 'gravity', 'extid', 'psid', 'created', 'edited', 'commented', 'received', 'changed', 'verb', 'postopts', 'plink', 'resource-id', 'event-id', 'inform', 'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'post-type', 'post-reason', diff --git a/src/Module/Api/Mastodon/PushSubscription.php b/src/Module/Api/Mastodon/PushSubscription.php index 9ddcfce36..dc07ab55a 100644 --- a/src/Module/Api/Mastodon/PushSubscription.php +++ b/src/Module/Api/Mastodon/PushSubscription.php @@ -43,9 +43,7 @@ class PushSubscription extends BaseApi 'subscription' => [], 'data' => [], ], $request); -/* -2022-07-31T08:08:11Z index [ERROR]: DB Error {"code":1366,"error":"Incorrect integer value: 'true' for column `piratica`.`subscription`.`follow` at row 1","callstack":"DBA::replace, Subscription::replace, PushSubscription::post, BaseModule::run, BaseApi::run, App::runFrontend","params":"REPLACE `subscription` (`application-id`, `uid`, `endpoint`, `pubkey`, `secret`, `follow`, `favourite`, `reblog`, `mention`, `poll`, `follow_request`, `status`) VALUES (213, 130, 'https://ntfy.sh/upNpejYKlqt5du?up=1', 'BEiGDNV6jsPwdtP186ZLbpqewcWBJHzM0qboxp8fVGoVxVUy6xiir_2RO4gM2FnE9sVg58sQdNuyDrr1jOmMj9Y', 'En7GzwQO8xuvXka5bIF3Sg', 'true', 'true', 'true', 'true', 'true', 0, 0)"} - {"file":"Database.php","line":801,"function":"e","uid":"c35eee","process_id":1404415} -*/ + $subscription = [ 'application-id' => $application['id'], 'uid' => $uid,