forked from GNUsocial/gnu-social
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
This commit is contained in:
@@ -78,7 +78,13 @@ class BookmarkforurlAction extends Action
|
||||
throw new ClientException(_('Invalid URL.'), 400);
|
||||
}
|
||||
|
||||
$f = File::processNew($this->url);
|
||||
$f = File::staticGet('url', $this->url);
|
||||
|
||||
if (empty($url)) {
|
||||
$f = File::processNew($this->url);
|
||||
}
|
||||
|
||||
// How about now?
|
||||
|
||||
if (!empty($f)) {
|
||||
$this->oembed = File_oembed::staticGet('file_id', $f->id);
|
||||
|
@@ -6,4 +6,4 @@ A bookmarklet is a small piece of javascript code used as a bookmark. This one w
|
||||
|
||||
Drag-and-drop the following link to your bookmarks bar or right-click it and add it to your browser favorites to keep it handy.
|
||||
|
||||
<a href="javascript:(function(){var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://%%site.server%%/%%site.path%%/index.php?action=bookmarkpopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=650,height=470')){l.href=g;}}a();})()">Bookmark on %%site.name%%</a>
|
||||
<a href="javascript:(function(){var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://%%site.server%%/%%site.path%%/index.php?action=bookmarkpopup',l=d.location,e=encodeURIComponent,g=f+'&title='+((e(s))?e(s):e(document.title))+'&url='+e(l.href);function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=650,height=520')){l.href=g;}}a();})()">Bookmark on %%site.name%%</a>
|
||||
|
@@ -70,7 +70,7 @@ class BookmarkpopupAction extends NewbookmarkAction
|
||||
$this->elementStart('div', array('id' => 'header'));
|
||||
$this->elementStart('address');
|
||||
$this->element('a', array('class' => 'url',
|
||||
'href' => common_local_url('public')),
|
||||
'href' => common_local_url('top')),
|
||||
'');
|
||||
$this->elementEnd('address');
|
||||
if (common_logged_in()) {
|
||||
|
@@ -174,9 +174,8 @@ class EventListItem extends NoticeListItemAdapter
|
||||
foreach ($responses as $response) {
|
||||
$ids[] = $response->profile_id;
|
||||
}
|
||||
common_debug("IDS = " . implode(',', $ids));
|
||||
$ids = array_slice($ids, 0, ProfileMiniList::MAX_PROFILES + 1);
|
||||
$profiles = Profile::pivotGet('id', $ids);
|
||||
common_debug("Profiles = " . print_r($profiles, true));
|
||||
$profile = new ArrayWrapper(array_values($profiles));
|
||||
$minilist = new ProfileMiniList($profile, $out);
|
||||
$minilist->show();
|
||||
|
Reference in New Issue
Block a user