aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-28 22:33:13 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-28 22:33:13 -0700
commit63f2e9b41259975f1af6415cda01dc0f81b1af30 (patch)
tree01518a9183b0daf02350da8f8e7d853f1a039ffc /mod
parent8d84472b4cb85b50c314491e0706d80eb5b7de6d (diff)
parent090dae46e500634cec8f3718fbb83d5dbb8f9690 (diff)
downloadvolse-hubzilla-63f2e9b41259975f1af6415cda01dc0f81b1af30.tar.gz
volse-hubzilla-63f2e9b41259975f1af6415cda01dc0f81b1af30.tar.bz2
volse-hubzilla-63f2e9b41259975f1af6415cda01dc0f81b1af30.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: include/zot.php mod/connedit.php util/messages.po
Diffstat (limited to 'mod')
-rw-r--r--mod/connedit.php13
-rw-r--r--mod/tagger.php4
2 files changed, 13 insertions, 4 deletions
diff --git a/mod/connedit.php b/mod/connedit.php
index 88304d2ed..dac393b5c 100644
--- a/mod/connedit.php
+++ b/mod/connedit.php
@@ -101,6 +101,9 @@ function connedit_post(&$a) {
}
}
+ $abook_incl = escape_tags($_POST['abook_incl']);
+ $abook_excl = escape_tags($_POST['abook_excl']);
+
$hidden = intval($_POST['hidden']);
$priority = intval($_POST['poll']);
@@ -189,12 +192,16 @@ function connedit_post(&$a) {
}
}
- $r = q("UPDATE abook SET abook_profile = '%s', abook_my_perms = %d , abook_closeness = %d, abook_pending = %d
+
+ $r = q("UPDATE abook SET abook_profile = '%s', abook_my_perms = %d , abook_closeness = %d, abook_pending = %d,
+ abook_incl = '%s', abook_excl = '%s'
where abook_id = %d AND abook_channel = %d",
dbesc($profile_id),
intval($abook_my_perms),
intval($closeness),
intval(1 - intval($new_friend)),
+ dbesc($abook_incl),
+ dbesc($abook_excl),
intval($contact_id),
intval(local_channel())
);
@@ -661,7 +668,9 @@ function connedit_content(&$a) {
'$lbl_slider' => t('Slide to adjust your degree of friendship'),
'$lbl_rating' => t('Rating (this information is public)'),
'$lbl_rating_txt' => t('Optionally explain your rating (this information is public)'),
- '$rating_txt' => $rating_text,
+ '$incl' => array('abook_incl',t('Only import posts with this text'), $contact['abook_incl'],t('words one per line or #tags or /patterns/, leave blank to import all posts')),
+ '$excl' => array('abook_excl',t('Do not import posts with this text'), $contact['abook_excl'],t('words one per line or #tags or /patterns/, leave blank to import all posts')),
+ '$rating_text' => array('rating_text', t('Optionally explain your rating (this information is public)'),$rating_text,''),
'$rating' => $rating,
'$rating_val' => $rating_val,
'$slide' => $slide,
diff --git a/mod/tagger.php b/mod/tagger.php
index c6365d707..9f9855ed8 100644
--- a/mod/tagger.php
+++ b/mod/tagger.php
@@ -48,7 +48,7 @@ function tagger_content(&$a) {
break;
default:
$targettype = ACTIVITY_OBJ_NOTE;
- $post_type = t('status');
+ $post_type = t('post');
if($item['mid'] != $item['parent_mid'])
$post_type = t('comment');
break;
@@ -131,4 +131,4 @@ function tagger_content(&$a) {
killme();
-} \ No newline at end of file
+}