Revert "Change contact post link to contact network page"
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 15 Aug 2018 10:12:49 +0000 (12:12 +0200)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 15 Aug 2018 10:12:49 +0000 (12:12 +0200)
This reverts commit 4c32661022ae2cabb548333862e3974b75678980.

include/conversation.php
src/Model/Contact.php

index b73a6d6..3ceccf3 100644 (file)
@@ -841,7 +841,7 @@ function item_photo_menu($item) {
        if ($cid && !$item['self']) {
                $poke_link = 'poke/?f=&c=' . $cid;
                $contact_url = 'contacts/' . $cid;
-               $posts_link = 'network?cid=' . $cid;
+               $posts_link = 'contacts/' . $cid . '/posts';
 
                if (in_array($network, [Protocol::DFRN, Protocol::DIASPORA])) {
                        $pm_url = 'message/new/' . $cid;
index 760a563..b18159d 100644 (file)
@@ -710,7 +710,7 @@ class Contact extends BaseObject
 
                $contact_url = System::baseUrl() . '/contacts/' . $contact['id'];
 
-               $posts_link = System::baseUrl() . '/network?cid=' . $contact['id'];
+               $posts_link = System::baseUrl() . '/contacts/' . $contact['id'] . '/posts';
 
                if (!$contact['self']) {
                        $contact_drop_link = System::baseUrl() . '/contacts/' . $contact['id'] . '/drop?confirm=1';