1
0
Fork 0

Better implementation of "hidewall"

This commit is contained in:
Michael Vogel 2016-05-06 11:04:21 +02:00
commit 6f72bc8d3a
2 changed files with 9 additions and 6 deletions

View file

@ -71,7 +71,7 @@ class dfrn {
*
* @return string DFRN feed entries
*/
public static function feed($dfrn_id, $owner_nick, $last_update, $direction = 0) {
public static function feed($dfrn_id, $owner_nick, $last_update, $direction = 0, $onlyheader = false) {
$a = get_app();
@ -234,7 +234,7 @@ class dfrn {
// This hook can't work anymore
// call_hooks('atom_feed', $atom);
if(! count($items)) {
if (!count($items) OR $onlyheader) {
$atom = trim($doc->saveXML());
call_hooks('atom_feed_end', $atom);