aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-21 16:59:57 -0800
committerfriendica <info@friendica.com>2012-02-21 16:59:57 -0800
commitf03aaf554e32fa528b0f1b1068db0824efb77e07 (patch)
treeb7159cddd4995482c67bc0290408552abb4cb046 /include
parent3e69b86bc1754087f8093b11b27aee2f56f5d79a (diff)
downloadvolse-hubzilla-f03aaf554e32fa528b0f1b1068db0824efb77e07.tar.gz
volse-hubzilla-f03aaf554e32fa528b0f1b1068db0824efb77e07.tar.bz2
volse-hubzilla-f03aaf554e32fa528b0f1b1068db0824efb77e07.zip
mark all notifications read
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 3db56da5f..347826042 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1551,8 +1551,9 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $pass = 0)
}
$force_parent = false;
- if($contact['network'] === NETWORK_OSTATUS) {
- $force_parent = true;
+ if($contact['network'] === NETWORK_OSTATUS || stristr($contact['url'],'twitter.com')) {
+ if($contact['network'] === NETWORK_OSTATUS)
+ $force_parent = true;
if(strlen($datarray['title']))
unset($datarray['title']);
$r = q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent-uri` = '%s' AND `uid` = %d",