aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-28 08:28:32 +0000
committerMario <mario@mariovavti.com>2021-05-28 08:28:32 +0000
commitf1aace5a22368a703e562169f855a0e387c5b93a (patch)
tree95a2cb5b651217ad85cece95e12137534f5ad274 /include
parent0718ac514d2421a96ab191f874a0cd8b120a5a78 (diff)
downloadvolse-hubzilla-f1aace5a22368a703e562169f855a0e387c5b93a.tar.gz
volse-hubzilla-f1aace5a22368a703e562169f855a0e387c5b93a.tar.bz2
volse-hubzilla-f1aace5a22368a703e562169f855a0e387c5b93a.zip
remove unobscure()
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php3
-rw-r--r--include/import.php5
-rw-r--r--include/items.php1
-rw-r--r--include/text.php9
4 files changed, 0 insertions, 18 deletions
diff --git a/include/conversation.php b/include/conversation.php
index a5fdb5fa1..39ff8d7ad 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1688,9 +1688,6 @@ function prepare_page($item) {
// ... other possible options
}
- // prepare_body calls unobscure() as a side effect. Do it here so that
- // the template will get passed an unobscured title.
-
$body = prepare_body($item, [ 'newwin' => false ]);
if(App::$page['template'] == 'none') {
$tpl = 'page_display_empty.tpl';
diff --git a/include/import.php b/include/import.php
index bf7f47c3e..ae7b2787a 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1846,7 +1846,6 @@ function get_webpage_elements($channel, $type = 'all') {
$elements['pages'] = array();
$pages = array();
foreach($r as $rr) {
- unobscure($rr);
//$lockstate = (($rr['allow_cid'] || $rr['allow_gid'] || $rr['deny_cid'] || $rr['deny_gid']) ? 'lock' : 'unlock');
@@ -1894,8 +1893,6 @@ function get_webpage_elements($channel, $type = 'all') {
$elements['layouts'] = array();
foreach($r as $rr) {
- unobscure($rr);
-
$elements['layouts'][] = array(
'type' => 'layout',
'description' => $rr['title'], // description of the layout
@@ -1931,8 +1928,6 @@ function get_webpage_elements($channel, $type = 'all') {
$elements['blocks'] = array();
foreach($r as $rr) {
- unobscure($rr);
-
$elements['blocks'][] = array(
'type' => 'block',
'title' => $rr['title'],
diff --git a/include/items.php b/include/items.php
index 5bb99c91c..15de6c730 100644
--- a/include/items.php
+++ b/include/items.php
@@ -2711,7 +2711,6 @@ function tag_deliver($uid, $item_id) {
// At this point we've determined that the person receiving this post was mentioned in it or it is a union.
// Now let's check if this mention was inside a reshare so we don't spam a forum
- // If it's private we may have to unobscure it momentarily so that we can parse it.
$body = preg_replace('/\[share(.*?)\[\/share\]/','',$item['body']);
diff --git a/include/text.php b/include/text.php
index 2584a94b9..8dc5ee188 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1515,15 +1515,6 @@ function link_compare($a, $b) {
return false;
}
-// Given an item array, convert the body element from bbcode to html and add smilie icons.
-// If attach is true, also add icons for item attachments
-
-
-function unobscure(&$item) {
- return;
-}
-
-
function theme_attachments(&$item) {
$s = '';