Use a less generic model name than Client

This commit is contained in:
Jonny Barnes 2016-05-29 14:21:46 +01:00
parent 4bb454c545
commit 12c91eab70
3 changed files with 7 additions and 7 deletions

View file

@ -150,7 +150,7 @@ class Note extends Model implements HasMedia
if ($this->client_id == null) {
return;
}
$name = Client::where('client_url', $this->client_id)->value('client_name');
$name = MicropubClient::where('client_url', $this->client_id)->value('client_name');
if ($name == null) {
$url = parse_url($this->client_id);
if (isset($url['path'])) {