From 0dbee1c4d2e3e47fae5d40b9677851b44969843c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 20 Feb 2023 08:26:23 -0500 Subject: [PATCH] Remove reference to remove field in event table - Address https://anonsys.net/display/bf69967c-1663-f368-5a52-cdd110992529 --- src/Model/Item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index b2daed13e..811d0b5b0 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1211,7 +1211,7 @@ class Item Post\Thread::insert($item['uri-id'], $item); } - // The content of activities normally doesn't matter - except for likes from Misskey + // The content of activities normally doesn't matter - except for likes from Misskey if (!in_array($item['verb'], self::ACTIVITIES) || in_array($item['verb'], [Activity::LIKE, Activity::DISLIKE]) && !empty($item['body']) && ($item['body'] != $item['verb'])) { Post\Content::insert($item['uri-id'], $item); } @@ -1715,7 +1715,7 @@ class Item if (!empty($item['event-id'])) { $event_post = Post::selectFirst(['event-id'], ['uri-id' => $item['uri-id'], 'uid' => $uid]); if (!empty($event_post['event-id'])) { - $event = DBA::selectFirst('event', ['edited', 'start', 'finish', 'summary', 'desc', 'location', 'nofinish', 'adjust'], ['id' => $item['event-id']]); + $event = DBA::selectFirst('event', ['edited', 'start', 'finish', 'summary', 'desc', 'location', 'nofinish'], ['id' => $item['event-id']]); if (!empty($event)) { // We aren't using "Event::store" here, since we don't want to trigger any further action $ret = DBA::update('event', $event, ['id' => $event_post['event-id']]);