소스 검색

Keep statuses bookmarked by local users in tootctl statuses remove (#12818)

master^2
Gomasy 4 년 전
committed by Eugen Rochko
부모
커밋
3b08535463
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      lib/mastodon/statuses_cli.rb

+ 2
- 0
lib/mastodon/statuses_cli.rb 파일 보기

@@ -48,6 +48,8 @@ module Mastodon
scope = scope.where('id NOT IN (SELECT statuses1.reblog_of_id FROM statuses AS statuses1 WHERE statuses.id = statuses1.reblog_of_id AND (statuses1.uri IS NULL OR statuses1.local OR statuses1.id >= ?))', max_id)
# Skip statuses favourited by local users
scope = scope.where('id NOT IN (SELECT favourites.status_id FROM favourites WHERE statuses.id = favourites.status_id AND favourites.account_id IN (SELECT accounts.id FROM accounts WHERE domain IS NULL))')
# Skip statuses bookmarked by local users
scope = scope.where('id NOT IN (SELECT bookmarks.status_id FROM bookmarks WHERE statuses.id = bookmarks.status_id AND bookmarks.account_id IN (SELECT accounts.id FROM accounts WHERE domain IS NULL))')

unless options[:clean_followed]
# Skip accounts followed by local accounts


불러오는 중...
취소
저장