]> git.mxchange.org Git - friendica.git/commitdiff
Use public_contact() instead of wrong query in Profile::getEventsReminderHTML
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Apr 2018 15:29:55 +0000 (11:29 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 22 Apr 2018 15:29:55 +0000 (11:29 -0400)
src/Model/Profile.php

index 1088ea600ed0042ee59c375e8904e5e43c64ce6f..cd8fa29e136ca208176287835f9fd2895acd6e9b 100644 (file)
@@ -643,8 +643,6 @@ class Profile
                $bd_format = L10n::t('g A l F d'); // 8 AM Friday January 18
                $classtoday = '';
 
-               $self = dba::selectFirst('contact', ['id'], ['uid' => local_user(), 'self' => true]);
-
                $s = dba::p(
                        "SELECT `event`.*
                        FROM `event`
@@ -663,7 +661,7 @@ class Profile
                        local_user(),
                        DateTimeFormat::utc('now + 7 days'),
                        DateTimeFormat::utc('now - 1 days'),
-                       $self['id'],
+                       public_contact(),
                        ACTIVITY_ATTEND,
                        ACTIVITY_ATTENDMAYBE
                );