]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Merge pull request #10166 from mexon/mat/refactor-user-arguments
[friendica.git] / view / theme / frio / theme.php
index 4c37e42e734518a7c5d1f6e251edf2bfdda4f1f7..78654dd2fc4e3bd4ebff05980c58127c4a9efd7f 100644 (file)
@@ -189,7 +189,7 @@ function frio_contact_photo_menu(App $a, &$args)
  * @param App $a The App class
  * @param array $nav The original nav menu
  */
-function frio_remote_nav($a, &$nav)
+function frio_remote_nav(App $a, array &$nav)
 {
        // get the homelink from $_XSESSION
        $homelink = Model\Profile::getMyURL();
@@ -308,20 +308,21 @@ function frio_acl_lookup(App $a, &$results)
  */
 function frio_display_item(App $a, &$arr)
 {
-       // Add subthread to the item menu
-       $subthread = [];
+       // Add follow to the item menu
+       $followThread = [];
        if (
                local_user()
                && local_user() == $arr['item']['uid']
                && $arr['item']['gravity'] == GRAVITY_PARENT
-               && !$arr['item']['self'])
-       {
-               $subthread = [
+               && !$arr['item']['self']
+               && !$arr['item']['mention']
+       ) {
+               $followThread = [
                        'menu'   => 'follow_thread',
                        'title'  => DI::l10n()->t('Follow Thread'),
-                       'action' => 'dosubthread(' . $arr['item']['id'] . ');',
+                       'action' => 'doFollowThread(' . $arr['item']['id'] . ');',
                        'href'   => '#'
                ];
        }
-       $arr['output']['subthread'] = $subthread;
+       $arr['output']['follow_thread'] = $followThread;
 }