summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-10-23 12:35:55 +0200
committerJoas Schilling <coding@schilljs.com>2017-10-23 12:35:55 +0200
commit143ff6a622a3349a01dd0347d069f824b0f24c4c (patch)
tree93b20380f72df2b4dd014bee3feb180644d0bd6d /apps/comments/lib
parentbdb0265644b43ba807dcc4ed1655fde6bb8c6174 (diff)
downloadnextcloud-server-143ff6a622a3349a01dd0347d069f824b0f24c4c.tar.gz
nextcloud-server-143ff6a622a3349a01dd0347d069f824b0f24c4c.zip
Add a doc why this should not be removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/lib')
-rw-r--r--apps/comments/lib/Activity/Provider.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php
index a691d7dd644..41ab8ea8b8e 100644
--- a/apps/comments/lib/Activity/Provider.php
+++ b/apps/comments/lib/Activity/Provider.php
@@ -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(),