mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:42:54 +00:00
fix twitter title showing up occasionally
This commit is contained in:
parent
4fbd93f7e7
commit
11871195be
2 changed files with 3 additions and 5 deletions
|
@ -1700,7 +1700,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)
|
||||||
if(! is_array($contact))
|
if(! is_array($contact))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if($contact['network'] === NETWORK_OSTATUS || stristr($permalink,'twitter.com')) {
|
if($contact['network'] === NETWORK_OSTATUS || stristr($contact['url'],'twitter.com')) {
|
||||||
if(strlen($datarray['title']))
|
if(strlen($datarray['title']))
|
||||||
unset($datarray['title']);
|
unset($datarray['title']);
|
||||||
$datarray['last-child'] = 1;
|
$datarray['last-child'] = 1;
|
||||||
|
|
|
@ -781,8 +781,6 @@ function smilies($s, $sample = false) {
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(! function_exists('day_translate')) {
|
if(! function_exists('day_translate')) {
|
||||||
function day_translate($s) {
|
function day_translate($s) {
|
||||||
$ret = str_replace(array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'),
|
$ret = str_replace(array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'),
|
||||||
|
|
Loading…
Reference in a new issue