[Directory] Almost finishied creating the /actors stream - problems with the css files

This commit is contained in:
Angelo D. Moura
2020-11-29 04:55:23 +00:00
committed by Hugo Sales
parent 517cba3510
commit 0c5941f515
5 changed files with 140 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ namespace App\Entity;
use App\Core\Cache;
use App\Core\DB\DB;
use App\Core\Entity;
use App\Core\Event;
use App\Core\UserRoles;
use DateTimeInterface;
use Functional as F;
@@ -204,6 +205,13 @@ class GSActor extends Entity
// }}} Autocode
public function getAvatarUrl()
{
$url = null;
Event::handle('get_avatar_url', [$this->getNickname(), &$url]);
return $url;
}
public static function getFromId(int $id): ?self
{
return Cache::get('gsactor-id-' . $id, function () use ($id) {