/** * @brief Adjusting recent changes for Wall * * This method clears or leaves as it was the text which is being send as a content of <li /> elements in RC page * * @param $changelist * @param string $s * @param RecentChange $rc * * @internal param \ChangesList $list * @return true because this is a hook * * @author Andrzej 'nAndy' Lukaszewski */ public static function onOldChangesListRecentChangesLine($changelist, &$s, $rc) { if ($rc->getAttribute('rc_namespace') == NS_USER_WALL_MESSAGE) { wfProfileIn(__METHOD__); $rcTitle = $rc->getTitle(); if (!$rcTitle instanceof Title) { // it can be media wiki deletion of an article -- we ignore them Wikia::log(__METHOD__, false, "WALL_NOTITLE_FROM_RC " . print_r($rc, true)); wfProfileOut(__METHOD__); return true; } $wm = new WallMessage($rcTitle); $wm->load(); if (!$wm->isMain()) { $wm = $wm->getTopParentObj(); if (is_null($wm)) { Wikia::log(__METHOD__, false, "WALL_NO_PARENT_MSG_OBJECT " . print_r($rc, true)); wfProfileOut(__METHOD__); return true; } else { $wm->load(); } } if ($wm->isAdminDelete() && $rc->getAttribute('rc_log_action') != 'wall_admindelete') { wfProfileOut(__METHOD__); return false; } } return true; }