aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-13 18:07:49 -0800
committerfriendica <info@friendica.com>2015-01-13 18:07:49 -0800
commit111bbe65d9f671f598b68da63d74555d68973358 (patch)
treebb081ac8acd5a3245e7022f64589bbf5d3c0180b /mod
parente528483d8150b1495e96de5309ed383a5fd6e09b (diff)
parent47a2668b30de34f1f08983ba485a630a89a9dd1e (diff)
downloadvolse-hubzilla-111bbe65d9f671f598b68da63d74555d68973358.tar.gz
volse-hubzilla-111bbe65d9f671f598b68da63d74555d68973358.tar.bz2
volse-hubzilla-111bbe65d9f671f598b68da63d74555d68973358.zip
Merge branch 'moretagging' of git://github.com/pafcu/red into pafcu-moretagging
Conflicts: mod/profiles.php
Diffstat (limited to 'mod')
-rw-r--r--mod/admin.php2
-rwxr-xr-xmod/events.php4
-rw-r--r--mod/item.php2
-rw-r--r--mod/mail.php3
-rw-r--r--mod/photos.php2
-rw-r--r--mod/profiles.php17
-rw-r--r--mod/siteinfo.php3
7 files changed, 30 insertions, 3 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 74a373738..1503bf18e 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -288,6 +288,8 @@ function admin_page_site_post(&$a){
del_config('system','admininfo');
}
else {
+ require_once('include/text.php');
+ linkify_tags($a, $admininfo, local_user());
set_config('system','admininfo', $admininfo);
}
set_config('system','language', $language);
diff --git a/mod/events.php b/mod/events.php
index e016311d5..28a816ea4 100755
--- a/mod/events.php
+++ b/mod/events.php
@@ -75,6 +75,10 @@ function events_post(&$a) {
$location = escape_tags(trim($_POST['location']));
$type = 'event';
+ require_once('include/text.php');
+ linkify_tags($a, $desc, local_user());
+ linkify_tags($a, $location, local_user());
+
$action = ($event_hash == '') ? 'new' : "event/" . $event_hash;
$onerror_url = $a->get_baseurl() . "/events/" . $action . "?summary=$summary&description=$desc&location=$location&start=$start_text&finish=$finish_text&adjust=$adjust&nofinish=$nofinish";
if(strcmp($finish,$start) < 0 && !$nofinish) {
diff --git a/mod/item.php b/mod/item.php
index 7a14a8ae9..e1855732e 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -576,7 +576,7 @@ function item_post(&$a) {
// Look for tags and linkify them
- $results = linkify_tags($a, $body, $uid, $profile_uid);
+ $results = linkify_tags($a, $body, ($uid) ? $uid : $profile_uid);
// Set permissions based on tag replacements
set_linkified_perms($results, $str_contact_allow, $str_group_allow, $profile_uid, $parent_item);
diff --git a/mod/mail.php b/mod/mail.php
index 6c778b956..37679aebf 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -83,6 +83,9 @@ function mail_post(&$a) {
// $body = fix_mce_lf($body);
// }
+ require_once('include/text.php');
+ linkify_tags($a, $body, local_user());
+
if(! $recipient) {
notice('No recipient found.');
$a->argc = 2;
diff --git a/mod/photos.php b/mod/photos.php
index 92a2d8e24..b2eb2847f 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -354,7 +354,7 @@ function photos_post(&$a) {
require_once('include/text.php');
$profile_uid = $a->profile['profile_uid'];
- $results = linkify_tags($a, $rawtags, local_user(), $profile_uid);
+ $results = linkify_tags($a, $rawtags, (local_user()) ? local_user() : $profile_uid);
$success = $results['success'];
$post_tags = array();
diff --git a/mod/profiles.php b/mod/profiles.php
index a426b7aa1..ef5f6b379 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -298,6 +298,23 @@ function profiles_post(&$a) {
$hide_friends = ((intval($_POST['hide_friends'])) ? 1: 0);
+ require_once('include/text.php');
+ linkify_tags($a, $likes, local_user());
+ linkify_tags($a, $dislikes, local_user());
+ linkify_tags($a, $about, local_user());
+ linkify_tags($a, $interest, local_user());
+ linkify_tags($a, $interest, local_user());
+ linkify_tags($a, $contact, local_user());
+ linkify_tags($a, $channels, local_user());
+ linkify_tags($a, $music, local_user());
+ linkify_tags($a, $book, local_user());
+ linkify_tags($a, $tv, local_user());
+ linkify_tags($a, $film, local_user());
+ linkify_tags($a, $romance, local_user());
+ linkify_tags($a, $work, local_user());
+ linkify_tags($a, $education, local_user());
+
+
$with = ((x($_POST,'with')) ? escape_tags(trim($_POST['with'])) : '');
if(! strlen($howlong))
diff --git a/mod/siteinfo.php b/mod/siteinfo.php
index 01804e62a..1f3cd4479 100644
--- a/mod/siteinfo.php
+++ b/mod/siteinfo.php
@@ -126,7 +126,8 @@ function siteinfo_content(&$a) {
else
$plugins_text = t('No installed plugins/addons/apps');
- $admininfo = bbcode(get_config('system','admininfo'));
+ $txt = get_config('system','admininfo');
+ $admininfo = bbcode($txt);
if(file_exists('doc/site_donate.html'))
$donate .= file_get_contents('doc/site_donate.html');