forked from GNUsocial/gnu-social
add method Realtime_channel::touch()
This commit is contained in:
parent
85ea41ea46
commit
07796250fd
@ -230,13 +230,18 @@ class Realtime_channel extends Managed_DataObject
|
||||
}
|
||||
|
||||
if ($channel->find(true)) {
|
||||
// Touch it!
|
||||
$orig = clone($channel);
|
||||
$channel->modified = common_sql_now();
|
||||
$channel->update($orig);
|
||||
$channel->touch();
|
||||
return $channel;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function touch()
|
||||
{
|
||||
// Touch it!
|
||||
$orig = clone($this);
|
||||
$this->modified = common_sql_now();
|
||||
$this->update($orig);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user