Commit 4e58a8d4 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(feat): Get Pro Domain owner icon

1 merge request!308WIP: (feat): Minds Pro
Pipeline #81167254 failed with stages
in 4 minutes and 9 seconds
......@@ -6,8 +6,10 @@
namespace Minds\Core\Pro;
use Exception;
use Minds\Core\Config;
use Minds\Core\Di\Di;
use Minds\Entities\User;
use Zend\Diactoros\ServerRequest;
class Domain
......@@ -54,4 +56,17 @@ class Domain
{
return true;
}
/**
* @param Settings $settings
* @return string
* @throws Exception
*/
public function getIcon(Settings $settings)
{
$owner = new User();
$owner->guid = $settings->getUserGuid();
return $owner->getIconURL('large');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment