mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

[master勢のみ] Mastodon の 不完全な ActivityPub 対応を取り除く - 雪餅の鯖缶日誌 https://blog.yukimochi.io/2017/08/master-mastodon-activitypub.html をやってみた

> SELECT COUNT(1) FROM accounts WHERE protocol=1;
count
-------
198
(1 row)

が作業前後で変わらなかったんだけどまあいいかw

更新時はエラーが出ても続けるようにrescueをいくつか

Account.where(protocol: :activitypub).each do |acc|
begin
print '.'
ResolveRemoteAccountService.new.call(acc.acct)
rescue HTTP::TimeoutError, Mastodon::UnexpectedResponseError => e
puts "\n#{acc.id} #{acc.username} #{acc.domain} : #{e}"
end
end

zunda

Account.where(protocol: :activitypub).each do |acc|
begin
print '.'
ResolveRemoteAccountService.new.call(acc.acct)
rescue HTTP::TimeoutError, Mastodon::UnexpectedResponseError => e
puts "\n#{acc.id} #{acc.username} #{acc.domain} : #{e}"
end
end

再購読のコードはこちら

Account.remote.with_followers.where.not(subscription_expires_at: nil).find_each do |a|
begin
print '.'
SubscribeService.new.call(a)
rescue OpenSSL::SSL::SSLError, HTTP::ConnectionError => e
puts "\n#{a.id} #{a.username} #{a.domain} : #{e}"
end
end