Better implementation of "hidewall"
This commit is contained in:
parent
a1d06cc45e
commit
6f72bc8d3a
2 changed files with 9 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue