]> git.mxchange.org Git - friendica.git/commitdiff
Added warning
authorMichael <heluecht@pirati.ca>
Fri, 6 Jul 2018 06:37:33 +0000 (06:37 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 6 Jul 2018 06:37:33 +0000 (06:37 +0000)
src/Model/Item.php

index 1f0d496ab870b72a59fb73f644cb13066c6d0584..7c4a3cbffe1f43a74579c1de94a9c8731e1673b6 100644 (file)
@@ -78,6 +78,8 @@ class Item extends BaseObject
                        'author-id', 'author-link', 'author-name', 'author-avatar',
                        'owner-id', 'owner-link', 'owner-name', 'owner-avatar'];
 
+       // Never reorder or remove entries from this list. Just add new ones at the end, if needed.
+       // The item-activity table only stores the index and needs this array to know the matching activity.
        const ACTIVITIES = [ACTIVITY_LIKE, ACTIVITY_DISLIKE, ACTIVITY_ATTEND, ACTIVITY_ATTENDNO, ACTIVITY_ATTENDMAYBE];
 
        /**