Merge pull request #12820 from MrPetovan/bug/fatal-errors
Remove reference to remove field in event table
This commit is contained in:
commit
7560939d75
1 changed files with 2 additions and 2 deletions
|
@ -1211,7 +1211,7 @@ class Item
|
||||||
Post\Thread::insert($item['uri-id'], $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'])) {
|
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);
|
Post\Content::insert($item['uri-id'], $item);
|
||||||
}
|
}
|
||||||
|
@ -1715,7 +1715,7 @@ class Item
|
||||||
if (!empty($item['event-id'])) {
|
if (!empty($item['event-id'])) {
|
||||||
$event_post = Post::selectFirst(['event-id'], ['uri-id' => $item['uri-id'], 'uid' => $uid]);
|
$event_post = Post::selectFirst(['event-id'], ['uri-id' => $item['uri-id'], 'uid' => $uid]);
|
||||||
if (!empty($event_post['event-id'])) {
|
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)) {
|
if (!empty($event)) {
|
||||||
// We aren't using "Event::store" here, since we don't want to trigger any further action
|
// 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']]);
|
$ret = DBA::update('event', $event, ['id' => $event_post['event-id']]);
|
||||||
|
|
Loading…
Reference in a new issue