mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
439 B
PHP
22 lines
439 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Mention;
|
|
|
|
class StatusMentionService
|
|
{
|
|
public static function get($id)
|
|
{
|
|
return Mention::whereStatusId($id)
|
|
->get()
|
|
->map(function ($mention) {
|
|
return AccountService::get($mention->profile_id);
|
|
})->filter(function ($mention) {
|
|
return $mention;
|
|
})
|
|
->values()
|
|
->toArray();
|
|
}
|
|
}
|