This account is not set to public on notestock.
This account is not set to public on notestock.
布団からの脱出に成功したので
31e7940de (tag: v2.7.0, upstream/master) Fix multiple workers for the same scheduled status being queueable (#9875)
6b91da97b Fix directory showing tags that have no currently eligible accounts (#9872)
70405db63 Remove unused locale string (#9873)
c80b89c2a i18n: Update Japanese translations (#9871)
e9cd3636c Fix `tootctl accounts delete` not deleting user record as well (#9874)
d891b0b00 Update CHANGELOG.md
7cf85c013 Bump version to 2.7.0
c3f57188a Weblate translations (2019-01-19) (#9867)
9fd644348 Add translators to AUTHORS.md (#9865)
6ca901578 Fix error when `scheduled_at` attribute is malformed (#9866)
7c3fddeab Change CHANGELOG.md references from pull requests to authors (#9864)
マストドン2.7.0が公開されましたね。
2.7.0のサーバでは予約投稿機能が利用可能です。5分以上先の日時を指定して投稿すると、サーバ側でその時刻に投稿処理が行われます。
この機能は公式WebUIからはまだ利用できず、未対応のアプリからも利用できません。ぜひSubway Tooterでお試しください!
This account is not set to public on notestock.
This account is not set to public on notestock.
\マスター/ \ますたー/
Merged tootsuite/mastodon at 31e7940de553007ea2e863cb9a418ad46837431e aka v2.7.0.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
tootctl accounts refresh ユーザー名@ドメインで走るのは、lib/mastodon/accounts_cli.rbよりMaintenance::RedownloadAccountMediaWorker.perform_async。app/workers/maintenance/redownload_account_media_worker.rbより、account.reset_avatar!、account.reset_header!、account.saveが順に呼ばれる。
しかし、reset_avatar!の定義はどこだ?git grep reset_avatarしても結果が得られない。また、irbから走らせてもすぐ完了するのでリクエストを送っているようにも見えない。手元にアバターが無い例:
~ $ rails c
> a = Account.find_remote('zundan', 'mstdn.jp')
> a.avatar_updated_at
=> nil
> a.reset_avatar!
=> nil
> a.avatar_updated_at
=> nil
手元にアバターが有る例:
> a = Account.find_remote('ユーザー名', 'mstdn.jp')
> a.avatar_updated_at
=> Sat, 29 Apr 2017 06:55:28 UTC +00:00
> a.reset_avatar!
=> nil
> a.avatar_updated_at
=> Sat, 29 Apr 2017 06:55:28 UTC +00:00
> a.avatar_updated_at = nil
> a.reset_avatar!
> a.avatar_updated_at
=> nil
データベース行数は残り7%弱(どきどき)
$ heroku pg:info -a zundan-mastodon
=== HEROKU_POSTGRESQL_ORANGE_URL, DATABASE_URL
Plan: Hobby-basic
Status: Available
Connections: 6/20
PG Version: 10.6
Created: 2017-12-16 18:16 UTC
Data Size: 3.82 GB
Tables: 57
Rows: 9342660/10000000 (In compliance, close to row limit)
$ curl -sqo - https://mastodon.zunda.ninja/api/v1/accounts/1 | jq
じゃ公開鍵は降ってこないんだねえ
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
reset_avatar!の定義を探す
https://qiita.com/jnchito/items/fc8a61b421d026a23ffe
> a = Account.find_remote('zundan', 'mstdn.jp')
> a.method(:reset_avatar!).source_location
=> ["/app/app/models/concerns/remotable.rb", 53]
おぉ!こりゃ便利。app/models/concerns/remotable.rb はメタプログラミングな感じで読みにくいんだけど、これを読めば何が期待通りに動いてないのかわかる感じ。
@nelsoncoffeeroaster ハワイ島という島の北東にあるヒロという町に島流しになっております。コナのコーヒー畑地帯までは車で二時間くらい。
This account is not set to public on notestock.
This account is not set to public on notestock.
コードを編集しながら本番アプリのデータに対してコードを走らせたいのでローカルなMacBook Airでhttps://github.com/zunda/mastodon/commit/324914c11bcc7d21f613128c1449e599eac76901 をcherry-pickしてDATABASE_URLとREDIS_URLを本番アプリのものにしてRAILS_ENV=productionしてbundle installしてみてる
データ壊すなよぉ
ふむ。このインスタンスでアバターが見えていないmstdn.jpのアカウントについては、 https://github.com/zunda/mastodon/blob/5b2b493a908cbea55096f7f028c306f6270e3b00/app/models/concerns/remotable.rb#L13 で url が nil になっている。アバターの見えているアカウントについては、 https://media.mstdn.jp/accounts/avatars/???/???/???/original/????????????????.png の形式のURLとなっている。
というわけで、account.reset_avatar!やaccount.reset_header!が走る前にavatar_remote_urlやheader_remote_urlを取得しとかんとかんのだね。
@i_sparkling 乱数がちゃんと乱数になってるかいったいどうやってテストしてるんだろうとか考え始めると、さっぱりぷりぷりでよく眠れます(だめ)
なぜ作った センター試験の謎キャラ、速攻で3D化される「先を越されないようスピード優先で仕上げた」 - ねとらぼ
http://nlab.itmedia.co.jp/nl/articles/1901/20/news021.html
This account is not set to public on notestock.
This account is not set to public on notestock.
@nelsoncoffeeroaster あざます!あざます!しかしどちらかというと帰国の機会に大量に入手したい次第(いつになるんだ…