Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
6433ce70a1
@ -95,7 +95,7 @@ class Acl extends \Zotlabs\Web\Controller {
|
|||||||
. "' IN xchan_name) else position('" . protect_sprintf(dbesc(punify($search))) . "' IN xchan_addr) end, ";
|
. "' IN xchan_name) else position('" . protect_sprintf(dbesc(punify($search))) . "' IN xchan_addr) end, ";
|
||||||
|
|
||||||
$col = ((strpos($search,'@') !== false) ? 'xchan_addr' : 'xchan_name' );
|
$col = ((strpos($search,'@') !== false) ? 'xchan_addr' : 'xchan_name' );
|
||||||
$sql_extra3 = "AND $col like " . protect_sprintf( "'%" . dbesc($search) . "%'" ) . " ";
|
$sql_extra3 = "AND $col like " . protect_sprintf( "'%" . dbesc(($col === 'xchan_addr') ? punify($search) : $search) . "%'" ) . " ";
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -18,7 +18,7 @@ class Hashtags extends \Zotlabs\Web\Controller {
|
|||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
foreach($r as $rv) {
|
foreach($r as $rv) {
|
||||||
$result[] = [ 'text' => strtolower($rv['term']) ];
|
$result[] = [ 'text' => $rv['term'] ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,14 +67,14 @@ class Mail extends \Zotlabs\Web\Controller {
|
|||||||
if(! $recipient) {
|
if(! $recipient) {
|
||||||
$channel = \App::get_channel();
|
$channel = \App::get_channel();
|
||||||
|
|
||||||
$j = \Zotlabs\Zot\Finger::run($rstr,$channel);
|
$j = \Zotlabs\Zot\Finger::run(punify($rstr),$channel);
|
||||||
|
|
||||||
if(! $j['success']) {
|
if(! $j['success']) {
|
||||||
notice( t('Unable to lookup recipient.') . EOL);
|
notice( t('Unable to lookup recipient.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger('message_post: lookup: ' . $url . ' ' . print_r($j,true));
|
logger('message_post: lookup: ' . $rstr . ' ' . print_r($j,true));
|
||||||
|
|
||||||
if(! $j['guid']) {
|
if(! $j['guid']) {
|
||||||
notice( t('Unable to communicate with requested channel.'));
|
notice( t('Unable to communicate with requested channel.'));
|
||||||
|
@ -284,6 +284,8 @@ class Wiki extends \Zotlabs\Web\Controller {
|
|||||||
$wikiheaderPage = urldecode($pageUrlName);
|
$wikiheaderPage = urldecode($pageUrlName);
|
||||||
|
|
||||||
$renamePage = (($wikiheaderPage === 'Home') ? '' : t('Rename page'));
|
$renamePage = (($wikiheaderPage === 'Home') ? '' : t('Rename page'));
|
||||||
|
$sharePage = t('Share');
|
||||||
|
|
||||||
$p = [];
|
$p = [];
|
||||||
|
|
||||||
if(! $ignore_language) {
|
if(! $ignore_language) {
|
||||||
@ -354,6 +356,8 @@ class Wiki extends \Zotlabs\Web\Controller {
|
|||||||
'$wikiheaderName' => $wikiheaderName,
|
'$wikiheaderName' => $wikiheaderName,
|
||||||
'$wikiheaderPage' => $wikiheaderPage,
|
'$wikiheaderPage' => $wikiheaderPage,
|
||||||
'$renamePage' => $renamePage,
|
'$renamePage' => $renamePage,
|
||||||
|
'$sharePage' => $sharePage,
|
||||||
|
'$shareLink' => urlencode('#^[zrl=' . z_root() . '/wiki/' . argv(1) . '/' . $wikiUrlName . '/' . $pageUrlName . ']' . '[ ' . $owner['channel_name'] . ' ] - ' . $wikiheaderName . ' - ' . $wikiheaderPage . '[/zrl]'),
|
||||||
'$showPageControls' => $showPageControls,
|
'$showPageControls' => $showPageControls,
|
||||||
'$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
|
'$editOrSourceLabel' => (($showPageControls) ? t('Edit') : t('Source')),
|
||||||
'$tools_label' => 'Page Tools',
|
'$tools_label' => 'Page Tools',
|
||||||
|
@ -210,7 +210,7 @@ function string2bb(element) {
|
|||||||
tags = {
|
tags = {
|
||||||
match: /(^|\s)(\#)([^ \n]{2,})$/,
|
match: /(^|\s)(\#)([^ \n]{2,})$/,
|
||||||
index: 3,
|
index: 3,
|
||||||
search: function(term, callback) { $.getJSON('/hashtags/' + '$f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); },
|
search: function(term, callback) { $.getJSON('/hashtags/' + '$f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.toLowerCase().indexOf(term.toLowerCase()) === 0 ? entry : null; })); }); },
|
||||||
replace: function(item) { return "$1$2" + item.text + ' '; },
|
replace: function(item) { return "$1$2" + item.text + ' '; },
|
||||||
context: function(text) { return text.toLowerCase(); },
|
context: function(text) { return text.toLowerCase(); },
|
||||||
template: tag_format
|
template: tag_format
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
<button type="button" class="btn btn-outline-secondary btn-sm" title="{{$sharePage}}" onclick="window.location.href='rpost?f=&body={{$shareLink}}';"><i class="fa fa-fw fa-share"></i></button>
|
||||||
<button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(); adjustFullscreenEditorHeight();"><i class="fa fa-expand"></i></button>
|
<button id="fullscreen-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(); adjustFullscreenEditorHeight();"><i class="fa fa-expand"></i></button>
|
||||||
<button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false); adjustInlineEditorHeight()"><i class="fa fa-compress"></i></button>
|
<button id="inline-btn" type="button" class="btn btn-outline-secondary btn-sm" onclick="makeFullScreen(false); adjustInlineEditorHeight()"><i class="fa fa-compress"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user