Skip to content

引用機能 for v2.4.2#8

Closed
wakin- wants to merge 2 commits into2.4.2from
quote_v2_4_2
Closed

引用機能 for v2.4.2#8
wakin- wants to merge 2 commits into2.4.2from
quote_v2_4_2

Conversation

@wakin-
Copy link
Copy Markdown
Owner

@wakin- wakin- commented Jun 20, 2018

使い方

引用ボタンを選択すると

image

引用トゥートになります。

image

引用元トゥートが埋め込み表示されるようになります。

image

引用機能の無いインスタンスでは代替テキストが表示されます。

image

導入方法

前提

v2.4.2をベースにしています。

手順

このリモートリポジトリを取り込みます。

git remote add wakin https://github.com/wakin-/mastodon.git
git fetch wakin

quote ブランチのコミットを cherry-pick します。

git cherry-pick a05182b5cb79a32f41190de920e5f82ad3303c0f..2ad4bd1ef9e3e01f2fc243d703f4038994d5211a

DB の statuses テーブルに bigint 型のquote_idカラムを追加します。

RAILS_ENV=production bundle exec rails db:migrate

アセットファイルを更新します。

RAILS_ENV=production bundle exec rails assets:precompile

その後いつものようにプロセスの再起動で完了です。

@wakin- wakin- changed the title 引用機能 for v2 4 2 引用機能 for v2.4.2 Jun 20, 2018
@wakin- wakin- closed this Jul 14, 2018
@wakin- wakin- deleted the quote_v2_4_2 branch February 1, 2019 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants