3 * @copyright Copyright (C) 2020, Friendica
5 * @license GNU AGPL version 3 or any later version
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 * @deprecated since 2020.06
24 * @see \Friendica\Content\PageInfo::getFooterFromData
26 function add_page_info_data(array $data, $no_photos = false)
28 return "\n" . \Friendica\Content\PageInfo::getFooterFromData($data, $no_photos);
32 * @deprecated since 2020.06
33 * @see \Friendica\Content\PageInfo::queryUrl
35 function query_page_info($url, $photo = "", $keywords = false, $keyword_denylist = "")
37 return \Friendica\Content\PageInfo::queryUrl($url, $photo, $keywords, $keyword_denylist);
41 * @deprecated since 2020.06
42 * @see \Friendica\Content\PageInfo::getTagsFromUrl()
44 function get_page_keywords($url, $photo = "", $keywords = false, $keyword_denylist = "")
46 return $keywords ? \Friendica\Content\PageInfo::getTagsFromUrl($url, $photo, $keyword_denylist) : [];
50 * @deprecated since 2020.06
51 * @see \Friendica\Content\PageInfo::getFooterFromUrl
53 function add_page_info($url, $no_photos = false, $photo = "", $keywords = false, $keyword_denylist = "")
55 return "\n" . \Friendica\Content\PageInfo::getFooterFromUrl($url, $no_photos, $photo, $keywords, $keyword_denylist);
59 * @deprecated since 2020.06
60 * @see \Friendica\Content\PageInfo::appendToBody
62 function add_page_info_to_body($body, $texturl = false, $no_photos = false)
64 return \Friendica\Content\PageInfo::appendToBody($body, $texturl, $no_photos);
68 * @deprecated since 2020.06
69 * @see \Friendica\Protocol\Feed::consume
71 function consume_feed($xml, array $importer, array $contact, &$hub)
73 \Friendica\Protocol\Feed::consume($xml, $importer, $contact, $hub);