2010-07-18 13:02:55 +00:00
|
|
|
<?php
|
2016-11-24 00:11:22 +00:00
|
|
|
/**
|
2020-02-09 15:18:46 +00:00
|
|
|
* @copyright Copyright (C) 2020, Friendica
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
2016-11-24 00:11:22 +00:00
|
|
|
*/
|
2018-01-25 02:08:45 +00:00
|
|
|
|
2020-06-17 08:57:21 +00:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::getFooterFromData
|
|
|
|
*/
|
2018-07-31 01:02:34 +00:00
|
|
|
function add_page_info_data(array $data, $no_photos = false)
|
|
|
|
{
|
2020-06-17 08:57:21 +00:00
|
|
|
return "\n" . \Friendica\Content\PageInfo::getFooterFromData($data, $no_photos);
|
2014-04-04 08:52:53 +00:00
|
|
|
}
|
|
|
|
|
2020-06-17 08:57:21 +00:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::queryUrl
|
|
|
|
*/
|
2020-06-06 20:44:39 +00:00
|
|
|
function query_page_info($url, $photo = "", $keywords = false, $keyword_denylist = "")
|
2018-07-31 01:02:34 +00:00
|
|
|
{
|
2020-06-17 08:57:21 +00:00
|
|
|
return \Friendica\Content\PageInfo::queryUrl($url, $photo, $keywords, $keyword_denylist);
|
2015-01-20 21:54:25 +00:00
|
|
|
}
|
|
|
|
|
2020-06-17 08:57:21 +00:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::getTagsFromUrl()
|
|
|
|
*/
|
2020-06-06 20:44:39 +00:00
|
|
|
function get_page_keywords($url, $photo = "", $keywords = false, $keyword_denylist = "")
|
2020-04-17 06:35:20 +00:00
|
|
|
{
|
2020-06-17 08:57:21 +00:00
|
|
|
return $keywords ? \Friendica\Content\PageInfo::getTagsFromUrl($url, $photo, $keyword_denylist) : [];
|
2015-01-20 21:54:25 +00:00
|
|
|
}
|
|
|
|
|
2020-06-17 08:57:21 +00:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::getFooterFromUrl
|
|
|
|
*/
|
2020-06-06 20:44:39 +00:00
|
|
|
function add_page_info($url, $no_photos = false, $photo = "", $keywords = false, $keyword_denylist = "")
|
2018-07-31 01:02:34 +00:00
|
|
|
{
|
2020-06-17 08:57:21 +00:00
|
|
|
return "\n" . \Friendica\Content\PageInfo::getFooterFromUrl($url, $no_photos, $photo, $keywords, $keyword_denylist);
|
2014-10-20 06:03:47 +00:00
|
|
|
}
|
|
|
|
|
2020-06-17 08:57:21 +00:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::appendToBody
|
|
|
|
*/
|
2018-07-31 01:02:34 +00:00
|
|
|
function add_page_info_to_body($body, $texturl = false, $no_photos = false)
|
|
|
|
{
|
2020-06-17 08:57:21 +00:00
|
|
|
return \Friendica\Content\PageInfo::appendToBody($body, $texturl, $no_photos);
|
2014-01-05 15:10:02 +00:00
|
|
|
}
|
|
|
|
|
2011-02-08 05:16:39 +00:00
|
|
|
/**
|
2020-06-17 08:54:44 +00:00
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Protocol\Feed::consume
|
2010-10-22 04:48:22 +00:00
|
|
|
*/
|
2019-01-21 16:37:43 +00:00
|
|
|
function consume_feed($xml, array $importer, array $contact, &$hub)
|
2018-07-31 01:02:34 +00:00
|
|
|
{
|
2020-06-17 08:54:44 +00:00
|
|
|
\Friendica\Protocol\Feed::consume($xml, $importer, $contact, $hub);
|
2016-02-05 20:25:20 +00:00
|
|
|
}
|