mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 05:23:17 +00:00
Merge pull request #4954 from pixelfed/staging
Update Inbox and StatusObserver, fix silently rejected direct message…
This commit is contained in:
commit
7159d5cb3e
3 changed files with 10 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
- Update ApiV1Controller, implement better limit logic to gracefully handle requests with limits that exceed the max ([1f74a95d](https://github.com/pixelfed/pixelfed/commit/1f74a95d))
|
||||
- Update AdminCuratedRegisterController, show oldest applications first ([c4dde641](https://github.com/pixelfed/pixelfed/commit/c4dde641))
|
||||
- Update Directory logic, add curated onboarding support ([59c70239](https://github.com/pixelfed/pixelfed/commit/59c70239))
|
||||
- Update Inbox and StatusObserver, fix silently rejected direct messages due to saveQuietly which failed to generate a snowflake id ([089ba3c4](https://github.com/pixelfed/pixelfed/commit/089ba3c4))
|
||||
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||
|
||||
## [v0.11.12 (2024-02-16)](https://github.com/pixelfed/pixelfed/compare/v0.11.11...v0.11.12)
|
||||
|
|
|
@ -38,6 +38,10 @@ class StatusObserver
|
|||
*/
|
||||
public function updated(Status $status)
|
||||
{
|
||||
if(!in_array($status->scope, ['public', 'unlisted', 'private'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(config('instance.timeline.home.cached')) {
|
||||
Cache::forget('pf:timelines:home:' . $status->profile_id);
|
||||
}
|
||||
|
@ -55,6 +59,10 @@ class StatusObserver
|
|||
*/
|
||||
public function deleted(Status $status)
|
||||
{
|
||||
if(!in_array($status->scope, ['public', 'unlisted', 'private'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(config('instance.timeline.home.cached')) {
|
||||
Cache::forget('pf:timelines:home:' . $status->profile_id);
|
||||
}
|
||||
|
|
|
@ -423,7 +423,7 @@ class Inbox
|
|||
$status->uri = $activity['id'];
|
||||
$status->object_url = $activity['id'];
|
||||
$status->in_reply_to_profile_id = $profile->id;
|
||||
$status->saveQuietly();
|
||||
$status->save();
|
||||
|
||||
$dm = new DirectMessage;
|
||||
$dm->to_id = $profile->id;
|
||||
|
|
Loading…
Reference in a new issue