Add a doc why this should not be removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
bdb0265644
commit
143ff6a622
|
@ -174,6 +174,12 @@ class Provider implements IProvider {
|
|||
}
|
||||
|
||||
// Fix subjects from 12.0.3 and older
|
||||
//
|
||||
// Do NOT Remove unless necessary
|
||||
// Removing this will break parsing of activities that were created on
|
||||
// Nextcloud 12, so we should keep this as long as it's acceptable.
|
||||
// Otherwise if people upgrade over multiple releases in a short period,
|
||||
// they will get the dead entries in their stream.
|
||||
return [
|
||||
'actor' => $subjectParameters[0],
|
||||
'fileId' => (int) $event->getObjectId(),
|
||||
|
|
|
@ -201,7 +201,11 @@ class Calendar extends Base {
|
|||
}
|
||||
}
|
||||
|
||||
// Legacy
|
||||
// Legacy - Do NOT Remove unless necessary
|
||||
// Removing this will break parsing of activities that were created on
|
||||
// Nextcloud 12, so we should keep this as long as it's acceptable.
|
||||
// Otherwise if people upgrade over multiple releases in a short period,
|
||||
// they will get the dead entries in their stream.
|
||||
switch ($subject) {
|
||||
case self::SUBJECT_ADD:
|
||||
case self::SUBJECT_ADD . '_self':
|
||||
|
|
|
@ -139,7 +139,11 @@ class Event extends Base {
|
|||
}
|
||||
}
|
||||
|
||||
// Legacy
|
||||
// Legacy - Do NOT Remove unless necessary
|
||||
// Removing this will break parsing of activities that were created on
|
||||
// Nextcloud 12, so we should keep this as long as it's acceptable.
|
||||
// Otherwise if people upgrade over multiple releases in a short period,
|
||||
// they will get the dead entries in their stream.
|
||||
switch ($subject) {
|
||||
case self::SUBJECT_OBJECT_ADD . '_event':
|
||||
case self::SUBJECT_OBJECT_DELETE . '_event':
|
||||
|
|
|
@ -112,7 +112,11 @@ class Todo extends Event {
|
|||
}
|
||||
}
|
||||
|
||||
// Legacy
|
||||
// Legacy - Do NOT Remove unless necessary
|
||||
// Removing this will break parsing of activities that were created on
|
||||
// Nextcloud 12, so we should keep this as long as it's acceptable.
|
||||
// Otherwise if people upgrade over multiple releases in a short period,
|
||||
// they will get the dead entries in their stream.
|
||||
switch ($subject) {
|
||||
case self::SUBJECT_OBJECT_ADD . '_todo':
|
||||
case self::SUBJECT_OBJECT_DELETE . '_todo':
|
||||
|
|
Loading…
Reference in New Issue