Merge pull request #9990 from annando/notice
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 6 Mar 2021 13:00:37 +0000 (14:00 +0100)
committerGitHub <noreply@github.com>
Sat, 6 Mar 2021 13:00:37 +0000 (14:00 +0100)
Avoid notice "Undefined index: author-name" in Diaspora delivery

src/Model/Item.php

index 299736d..002d4bd 100644 (file)
@@ -94,9 +94,9 @@ class Item
                        'private', 'title', 'body', 'raw-body', 'location', 'coord', 'app',
                        'inform', 'deleted', 'extid', 'post-type', 'gravity',
                        'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid',
-                       'author-id', 'author-link', 'owner-id', 'owner-link', 'contact-uid',
+                       'author-id', 'author-link', 'author-name', 'author-avatar', 'owner-id', 'owner-link', 'contact-uid',
                        'signed_text', 'network', 'wall', 'contact-id', 'plink', 'forum_mode', 'origin',
-                       'thr-parent-id', 'parent-uri-id', 'postopts', 'pubmail', 
+                       'thr-parent-id', 'parent-uri-id', 'postopts', 'pubmail',
                        'event-created', 'event-edited', 'event-start', 'event-finish',
                        'event-summary', 'event-desc', 'event-location', 'event-type',
                        'event-nofinish', 'event-adjust', 'event-ignore', 'event-id'];