Pythonista3 に StaSh が入っている
- StaShを起動
- git cloneする
stashで以下のように打つ
git clone https://[email protected]/mimikun/mycardmemo.git mycardmemo
javascript:(function(u,t,b)%7Bvar%20s=document.createElement('script');s.charset='UTF-8';s.id='admiral-stats-exporter';s.setAttribute('data-token',t);s.setAttribute('data-skip-backup',b);s.src=u;document.body.appendChild(s)%7D)('https://www.admiral-stats.com/bookmarklets/exporter.js','MY_API_TOKEN','true');
インスタンス名 | アカウント名 |
---|---|
mstdn.jp | @[email protected] |
mstdn.maud.io | @[email protected] |
otogamer.me | @[email protected] |
pawoo.net | @[email protected] |
friends.nico | @[email protected] |
imastodon.net | @[email protected] |
今回実験に使うMastodonインスタンスは自分のインスタンスにしました。 多分他のインスタンスでもやり方は同じだと思います。
まずはアプリケーションを登録しないといけないので登録します。
Mastodon APIの叩き方を見て作業します。
I hereby claim:
To claim this, I am signing this object:
➜ mastodon git:(test/embed) docker-compose logs --tail=100 web | |
Attaching to mastodon_web_1 | |
web_1 | => Booting Puma | |
web_1 | => Rails 5.1.4 application starting in production | |
web_1 | => Run `rails server -h` for more startup options | |
web_1 | Default type scope order, limit and offset are ignored and will be nullified | |
web_1 | Creating scope :cache_ids. Overwriting existing method Notification.cache_ids. | |
web_1 | [5] Puma starting in cluster mode... | |
web_1 | [5] * Version 3.11.0 (ruby 2.5.0-p0), codename: Love Song | |
web_1 | [5] * Min threads: 5, max threads: 5 |
vagrant@mastodon:/vagrant$ bundle exec rails c | |
Chewy console strategy is `urgent` | |
Loading development environment (Rails 5.1.4) | |
[1] pry(main)> | |
[2] pry(main)> FetchLinkCardService.new.call(Status.find(<c^A$c^A9c^C*c^C3c^B/c^[2] pry(main)> FetchLinkCardService.new.call(Status.find(<c$c9c*c3c/cf | |
SyntaxError: unexpected '<', expecting ')' | |
...dService.new.call(Status.find(<c$c9c*c3c/cf | |
... ^ | |
(eval):2: Invalid char `\x01' in expression | |
(eval):2: Invalid char `\x01' in expression |
# はじめに | |
- VPSに入っている自分のインスタンスで動いているコードは、mimikun/masterブランチにあります。 | |
- ローカルにあるmastodon git リポジトリ の git remote -vはこのようになっています。 | |
``` | |
origin [email protected]:mimikun/mastodon.git (fetch) | |
origin [email protected]:mimikun/mastodon.git (push) | |
unarist [email protected]:unarist/mastodon.git (fetch) | |
unarist [email protected]:unarist/mastodon.git (push) | |
upstream [email protected]:tootsuite/mastodon.git (fetch) | |
upstream [email protected]:tootsuite/mastodon.git (push) |