+/**
+ * @brief Manipulate the data of the item
+ *
+ * At the moment we use this function to add some own stuff to the item menu
+ *
+ * @param App $a App $a The app data
+ * @param array $arr Array with the item and the item actions<br>
+ * 'item' => Array with item data<br>
+ * 'output' => Array with item actions<br>
+ */
+function frio_display_item(App $a, &$arr)
+{
+ // Add subthread to the item menu
+ $subthread = [];
+ if (
+ local_user()
+ && local_user() == $arr['item']['uid']
+ && $arr['item']['parent'] == $arr['item']['id']
+ && !$arr['item']['self'])
+ {
+ $subthread = [
+ 'menu' => 'follow_thread',
+ 'title' => L10n::t('Follow Thread'),
+ 'action' => 'dosubthread(' . $arr['item']['id'] . '); return false;',
+ 'href' => '#'
+ ];