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

zunda

コントローラから余計(?)な行を取り除いてこれでデータベースの行を消せることは確認した。次はIDの取得わね。

$ heroku run bash
~ $ rails c
> def destroy_status(account_id, status_id)
status = Status.where(account: Account.find(account_id)).find(status_id)
status.discard_with_reblogs
StatusPin.find_by(status: status)&.destroy
status.account.statuses_count = status.account.statuses_count - 1
RemovalWorker.perform_async(status.id, { 'redraft' => true })
end
> destroy_status(107475339473892866, 109406171267058080)
=> "634844905c40485e1b155920"