fix buggered contact photos
This commit is contained in:
parent
a258487801
commit
21491100f8
@ -85,6 +85,26 @@ function poller_run($argv, $argc){
|
|||||||
proc_run('php','include/expire.php');
|
proc_run('php','include/expire.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update any photos which didn't get imported properly
|
||||||
|
// This should be rare
|
||||||
|
|
||||||
|
$r = q("select xchan_photo_l, xchan_hash from xchan where xchan_photo_l != '' and xchan_photo_m = ''
|
||||||
|
and xchan_photo_date < GMT_TIMESTAMP() - INTERVAL 1 DAY");
|
||||||
|
if($r) {
|
||||||
|
require_once('include/photo/photo_driver.php');
|
||||||
|
foreach($r as $rr) {
|
||||||
|
$photos = import_profile_photo($rr['xchan_photo_l'],$rr['xchan_hash']);
|
||||||
|
$x = q("update xchan set xchan_photo_l = '%s', xchan_photo_m = '%s', xchan_photo_s = '%s', xchan_photo_mimetype = '%s'
|
||||||
|
where xchan_hash = '%s' limit 1",
|
||||||
|
dbesc($photos[0]),
|
||||||
|
dbesc($photos[1]),
|
||||||
|
dbesc($photos[2]),
|
||||||
|
dbesc($photos[3]),
|
||||||
|
dbesc($rr['xchan_hash'])
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$manual_id = 0;
|
$manual_id = 0;
|
||||||
$generation = 0;
|
$generation = 0;
|
||||||
|
@ -2439,6 +2439,17 @@ aside input[type='text'] {
|
|||||||
margin-top: -4px;
|
margin-top: -4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-dropdown-indicator {
|
||||||
|
opacity: 0.5;
|
||||||
|
filter:alpha(opacity=50);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-dropdown-indicator:hover {
|
||||||
|
opacity: 1.0;
|
||||||
|
filter:alpha(opacity=100);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.location-label, .gender-label, .marital-label, .homepage-label {
|
.location-label, .gender-label, .marital-label, .homepage-label {
|
||||||
float: left;
|
float: left;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
{{if $userinfo}}
|
{{if $userinfo}}
|
||||||
<li id="nav-user-linkmenu" class="nav-menu-icon"><a href="#" rel="#nav-user-menu" title="{{$userinfo.name}}"><img src="{{$userinfo.icon}}" alt="{{$userinfo.name}}">∇</a>
|
<li id="nav-user-linkmenu" class="nav-menu-icon"><a href="#" rel="#nav-user-menu" title="{{$userinfo.name}}"><img src="{{$userinfo.icon}}" alt="{{$userinfo.name}}"><span class="nav-dropdown-indicator">∇</span></a>
|
||||||
{{if $localuser}}
|
{{if $localuser}}
|
||||||
<ul id="nav-user-menu" class="menu-popup">
|
<ul id="nav-user-menu" class="menu-popup">
|
||||||
{{foreach $nav.usermenu as $usermenu}}
|
{{foreach $nav.usermenu as $usermenu}}
|
||||||
|
Reference in New Issue
Block a user