@ -31,20 +31,4 @@ class DirectMessage extends Model
{
return Auth::user()->profile->id === $this->from_id;
}
public function toText()
$actorName = $this->author->username;
return "{$actorName} sent a direct message.";
public function toHtml()
$actorUrl = $this->author->url();
$url = $this->url();
@ -32,20 +32,4 @@ class Follower extends Model
$path = $this->actor->permalink("#accepts/follows/{$this->id}{$append}");
return url($path);
$actorName = $this->actor->username;
return "{$actorName} ".__('notification.startedFollowingYou');
$actorUrl = $this->actor->url();
return "<a href='{$actorUrl}' class='profile-link'>{$actorName}</a> ".
__('notification.startedFollowingYou');
@ -31,21 +31,4 @@ class Like extends Model
return $this->belongsTo(Status::class);
public function toText($type = 'post')
$msg = $type == 'post' ? __('notification.likedPhoto') : __('notification.likedComment');
return "{$actorName} ".$msg;
public function toHtml($type = 'post')
return "<a href='{$actorUrl}' class='profile-link'>{$actorName}</a> ".$msg;
@ -29,20 +29,4 @@ class Mention extends Model
return $this->belongsTo(Status::class, 'status_id', 'id');
$actorName = $this->status->profile->username;
return "{$actorName} ".__('notification.mentionedYou');
$actorUrl = $this->status->profile->url();
__('notification.mentionedYou');
@ -108,8 +108,6 @@ class ModLogService {
$log = $this->log;
$msg = "{$log->user_username} commented on a modlog";
$rendered = "<span class='font-weight-bold'>{$log->user_username}</span> commented on a <a href='/i/admin/users/modlogs/{$log->user_id}}' class='font-weight-bold text-decoration-none'>modlog</a>";
$item_id = $log->id;
$item_type = 'App\ModLog';
$action = 'admin.user.modlog.comment';
@ -127,8 +125,6 @@ class ModLogService {
$n->item_id = $item_id;
$n->item_type = $item_type;
$n->action = $action;
$n->message = $msg;
$n->rendered = $rendered;
$n->save();
@ -285,38 +285,6 @@ class Status extends Model
return $obj;
public function replyToText()
$actorName = $this->profile->username;
return "{$actorName} ".__('notification.commented');
public function replyToHtml()
$actorUrl = $this->profile->url();
__('notification.commented');
public function shareToText()
return "{$actorName} ".__('notification.shared');
public function shareToHtml()
__('notification.shared');
public function recentComments()
return $this->comments()->orderBy('created_at', 'desc')->take(3);