mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 13:03:16 +00:00
Update admin moderation logic, only re-add top level posts
This commit is contained in:
parent
79bcaadd49
commit
c6ffda9618
2 changed files with 9 additions and 3 deletions
|
@ -1138,7 +1138,9 @@ trait AdminReportController
|
|||
|
||||
StatusService::del($status->id);
|
||||
StatusService::get($status->id);
|
||||
PublicTimelineService::add($status->id);
|
||||
if($status->in_reply_to_id == null && $status->reblog_of_id == null) {
|
||||
PublicTimelineService::add($status->id);
|
||||
}
|
||||
}
|
||||
|
||||
if($action == 'mark-all-read') {
|
||||
|
|
|
@ -800,9 +800,13 @@ class ApiV1Dot1Controller extends Controller
|
|||
StatusService::del($status->id, true);
|
||||
if($state !== 'public') {
|
||||
if($status->uri) {
|
||||
NetworkTimelineService::add($status->id);
|
||||
if($status->in_reply_to_id == null && $status->reblog_of_id == null) {
|
||||
NetworkTimelineService::add($status->id);
|
||||
}
|
||||
} else {
|
||||
PublicTimelineService::add($status->id);
|
||||
if($status->in_reply_to_id == null && $status->reblog_of_id == null) {
|
||||
PublicTimelineService::add($status->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if ($action == 'mark-unlisted') {
|
||||
|
|
Loading…
Reference in a new issue