if (!$local_user_is_self && $show_connect) {
if (!$visitor_is_authenticated) {
- $follow_link = 'dfrn_request/' . $profile['nickname'];
+ if (!empty($profile['nickname'])) {
+ $follow_link = 'dfrn_request/' . $profile['nickname'];
+ }
} elseif ($profile_is_native) {
if ($visitor_is_following) {
$unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url);
public static function getBirthdays()
{
- $a = \get_app();
+ $a = DI::app();
$o = '';
if (!local_user() || DI::mode()->isMobile() || DI::mode()->isMobile()) {
public static function getEventsReminderHTML()
{
- $a = \get_app();
+ $a = DI::app();
$o = '';
if (!local_user() || DI::mode()->isMobile() || DI::mode()->isMobile()) {
*/
public static function addVisitorCookieForHandle($handle)
{
- $a = \get_app();
+ $a = DI::app();
// Try to find the public contact entry of the visitor.
$cid = Contact::getIdForURL($handle);
*/
public static function openWebAuthInit($token)
{
- $a = \get_app();
+ $a = DI::app();
// Clean old OpenWebAuthToken entries.
OpenWebAuthToken::purge('owt', '3 MINUTE');