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