2010-07-18 15:02:55 +02:00
|
|
|
<?php
|
2016-11-24 01:11:22 +01:00
|
|
|
/**
|
2020-02-09 16:18:46 +01: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 01:11:22 +01:00
|
|
|
*/
|
2018-01-25 03:08:45 +01:00
|
|
|
|
2020-06-17 10:57:21 +02:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::getFooterFromData
|
|
|
|
*/
|
2018-07-31 03:02:34 +02:00
|
|
|
function add_page_info_data(array $data, $no_photos = false)
|
|
|
|
{
|
2020-06-17 10:57:21 +02:00
|
|
|
return "\n" . \Friendica\Content\PageInfo::getFooterFromData($data, $no_photos);
|
2014-04-04 10:52:53 +02:00
|
|
|
}
|
|
|
|
|
2020-06-17 10:57:21 +02:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::queryUrl
|
|
|
|
*/
|
2020-06-06 22:44:39 +02:00
|
|
|
function query_page_info($url, $photo = "", $keywords = false, $keyword_denylist = "")
|
2018-07-31 03:02:34 +02:00
|
|
|
{
|
2020-06-17 10:57:21 +02:00
|
|
|
return \Friendica\Content\PageInfo::queryUrl($url, $photo, $keywords, $keyword_denylist);
|
2015-01-20 22:54:25 +01:00
|
|
|
}
|
|
|
|
|
2020-06-17 10:57:21 +02:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::getTagsFromUrl()
|
|
|
|
*/
|
2020-06-06 22:44:39 +02:00
|
|
|
function get_page_keywords($url, $photo = "", $keywords = false, $keyword_denylist = "")
|
2020-04-17 08:35:20 +02:00
|
|
|
{
|
2020-06-17 10:57:21 +02:00
|
|
|
return $keywords ? \Friendica\Content\PageInfo::getTagsFromUrl($url, $photo, $keyword_denylist) : [];
|
2015-01-20 22:54:25 +01:00
|
|
|
}
|
|
|
|
|
2020-06-17 10:57:21 +02:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::getFooterFromUrl
|
|
|
|
*/
|
2020-06-06 22:44:39 +02:00
|
|
|
function add_page_info($url, $no_photos = false, $photo = "", $keywords = false, $keyword_denylist = "")
|
2018-07-31 03:02:34 +02:00
|
|
|
{
|
2020-06-17 10:57:21 +02:00
|
|
|
return "\n" . \Friendica\Content\PageInfo::getFooterFromUrl($url, $no_photos, $photo, $keywords, $keyword_denylist);
|
2014-10-20 08:03:47 +02:00
|
|
|
}
|
|
|
|
|
2020-06-17 10:57:21 +02:00
|
|
|
/**
|
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Content\PageInfo::appendToBody
|
|
|
|
*/
|
2018-07-31 03:02:34 +02:00
|
|
|
function add_page_info_to_body($body, $texturl = false, $no_photos = false)
|
|
|
|
{
|
2020-06-17 10:57:21 +02:00
|
|
|
return \Friendica\Content\PageInfo::appendToBody($body, $texturl, $no_photos);
|
2014-01-05 16:10:02 +01:00
|
|
|
}
|
|
|
|
|
2011-02-08 06:16:39 +01:00
|
|
|
/**
|
2020-06-17 10:54:44 +02:00
|
|
|
* @deprecated since 2020.06
|
|
|
|
* @see \Friendica\Protocol\Feed::consume
|
2010-10-22 06:48:22 +02:00
|
|
|
*/
|
2019-01-21 17:37:43 +01:00
|
|
|
function consume_feed($xml, array $importer, array $contact, &$hub)
|
2018-07-31 03:02:34 +02:00
|
|
|
{
|
2020-06-17 10:54:44 +02:00
|
|
|
\Friendica\Protocol\Feed::consume($xml, $importer, $contact, $hub);
|
2016-02-05 21:25:20 +01:00
|
|
|
}
|