X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FPost.php;h=8b8463f8587fe5417e1ac17ed13b610cfb0ef5c5;hb=acc3c2d2c7bb10ff53e9ca2cb335701acfd4f940;hp=ddbc1a73682e69831f1dc48eb3cd56c364932e2f;hpb=0c4ebce3913e5d605caa5c5b7fc05030489722ab;p=friendica.git diff --git a/src/Object/Post.php b/src/Object/Post.php index ddbc1a7368..8b8463f858 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -218,9 +218,9 @@ class Post if (DI::userSession()->getLocalUserId()) { if (Strings::compareLink(DI::session()->get('my_url'), $item['author-link'])) { if ($item['event-id'] != 0) { - $edpost = ['events/event/' . $item['event-id'], DI::l10n()->t('Edit')]; + $edpost = ['calendar/event/edit/' . $item['event-id'], DI::l10n()->t('Edit')]; } else { - $edpost = ['editpost/' . $item['id'], DI::l10n()->t('Edit')]; + $edpost = [sprintf('post/%s/edit', $item['id']), DI::l10n()->t('Edit')]; } } $dropping = in_array($item['uid'], [0, DI::userSession()->getLocalUserId()]); @@ -280,7 +280,7 @@ class Post $profile_link = $item['author-link']; } - if (strpos($profile_link, 'redir/') === 0) { + if (strpos($profile_link, 'contact/redir/') === 0) { $sparkle = ' sparkle'; }