make sure the user can't inadvertently send a post with @!-tags to an
unintended audience because he had browsed the Matrix by collection or by contact
This commit is contained in:
parent
b00f24ad75
commit
7a6fcd9ea4
@ -495,6 +495,7 @@ function item_post(&$a) {
|
|||||||
$private_forum = false;
|
$private_forum = false;
|
||||||
|
|
||||||
if(count($tags)) {
|
if(count($tags)) {
|
||||||
|
$first_access_tag = true;
|
||||||
foreach($tags as $tag) {
|
foreach($tags as $tag) {
|
||||||
|
|
||||||
// If we already tagged 'Robert Johnson', don't try and tag 'Robert'.
|
// If we already tagged 'Robert Johnson', don't try and tag 'Robert'.
|
||||||
@ -514,6 +515,11 @@ function item_post(&$a) {
|
|||||||
logger('handle_tag: ' . print_r($success,tue), LOGGER_DEBUG);
|
logger('handle_tag: ' . print_r($success,tue), LOGGER_DEBUG);
|
||||||
if(($access_tag) && (! $parent_item)) {
|
if(($access_tag) && (! $parent_item)) {
|
||||||
logger('access_tag: ' . $tag . ' ' . print_r($access_tag,true), LOGGER_DEBUG);
|
logger('access_tag: ' . $tag . ' ' . print_r($access_tag,true), LOGGER_DEBUG);
|
||||||
|
if ($first_access_tag) {
|
||||||
|
$str_contact_allow = '';
|
||||||
|
$str_group_allow = '';
|
||||||
|
$first_access_tag = false;
|
||||||
|
}
|
||||||
if(strpos($access_tag,'cid:') === 0) {
|
if(strpos($access_tag,'cid:') === 0) {
|
||||||
$str_contact_allow .= '<' . substr($access_tag,4) . '>';
|
$str_contact_allow .= '<' . substr($access_tag,4) . '>';
|
||||||
$access_tag = '';
|
$access_tag = '';
|
||||||
|
Reference in New Issue
Block a user