引用機能 for v3.1.2#44
Open
wakin- wants to merge 8 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
使い方
引用ボタンを選択すると
引用トゥートになります。
引用元トゥートが埋め込み表示されるようになります。
引用機能の無いインスタンスでは代替テキストが表示されます。
導入方法
前提
v3.1.2 をベースにしています。
手順
このリモートリポジトリを取り込みます。
git remote add wakin https://github.com/wakin-/mastodon.gitgit fetch wakinquote ブランチのコミットを cherry-pick します。
git cherry-pick 43e06b03f019076de765a05e4673760d49af02cfgit cherry-pick 476de1f151978693624555d3318726cd8756959dgit cherry-pick f5c763453e55536cebf3e0fa3caa41a00428fca9git cherry-pick 9a5d43d64c0d01d9be468a312c4e8fffaa814bcfgit cherry-pick b12511d4b247e16b8e9f1329eddc5bf2ace39339git cherry-pick 95b06ea0f1df7852be0500d219f9390a1526f8c1git cherry-pick 5345d14a2a80755b0a0fb06a917fcb418c63b71fgit cherry-pick 99b9c1e8718d648370959dfed9a5983d9171f731DB の statuses テーブルに bigint 型の
quote_idカラムを追加します。RAILS_ENV=production bundle exec rails db:migrateアセットファイルを更新します。
RAILS_ENV=production bundle exec rails assets:precompileその後いつものようにプロセスの再起動で完了です。