mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Merge pull request #667 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
2b160f1765
2 changed files with 19 additions and 21 deletions
|
@ -205,15 +205,15 @@ class Inbox
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// send notification
|
// send notification
|
||||||
$notification = new Notification();
|
Notification::firstOrCreate([
|
||||||
$notification->profile_id = $target->id;
|
'profile_id' => $target->id,
|
||||||
$notification->actor_id = $actor->id;
|
'actor_id' => $actor->id,
|
||||||
$notification->action = 'follow';
|
'action' => 'follow',
|
||||||
$notification->message = $follower->toText();
|
'message' => $follower->toText(),
|
||||||
$notification->rendered = $follower->toHtml();
|
'rendered' => $follower->toHtml(),
|
||||||
$notification->item_id = $target->id;
|
'item_id' => $target->id,
|
||||||
$notification->item_type = "App\Profile";
|
'item_type' => 'App\Profile'
|
||||||
$notification->save();
|
]);
|
||||||
|
|
||||||
// send Accept to remote profile
|
// send Accept to remote profile
|
||||||
$accept = [
|
$accept = [
|
||||||
|
@ -251,17 +251,15 @@ class Inbox
|
||||||
'in_reply_to_id' => $parent->id,
|
'in_reply_to_id' => $parent->id,
|
||||||
'type' => 'reply'
|
'type' => 'reply'
|
||||||
]);
|
]);
|
||||||
if($status->wasRecentlyCreated) {
|
Notification::firstOrCreate([
|
||||||
$notification = new Notification();
|
'profile_id' => $parent->profile->id,
|
||||||
$notification->profile_id = $parent->profile->id;
|
'actor_id' => $actor->id,
|
||||||
$notification->actor_id = $actor->id;
|
'action' => 'share',
|
||||||
$notification->action = 'comment';
|
'message' => $status->replyToText(),
|
||||||
$notification->message = $status->toText();
|
'rendered' => $status->replyToHtml(),
|
||||||
$notification->rendered = $status->toHtml();
|
'item_id' => $parent->id,
|
||||||
$notification->item_id = $parent->id;
|
'item_type' => 'App\Status'
|
||||||
$notification->item_type = "App\Status";
|
]);
|
||||||
$notification->save();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleAcceptActivity()
|
public function handleAcceptActivity()
|
||||||
|
|
|
@ -23,7 +23,7 @@ return [
|
||||||
| This value is the version of your PixelFed instance.
|
| This value is the version of your PixelFed instance.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'version' => '0.7.1',
|
'version' => '0.7.2',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Reference in a new issue