Add boost of remote quote post with fallback link to sample dev data (#34771)

This commit is contained in:
Claire 2025-05-22 14:45:24 +02:00 committed by GitHub
parent 80849fbfba
commit da60acced5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -351,5 +351,21 @@ namespace :dev do
display_name: 'Mastodon test/showcase account',
note: 'Test account to showcase many Mastodon features. Most of its posts are public, but some are private!'
)
remote_quote = Status.create_with(
text: <<~HTML,
<p>This is a self-quote of a remote formatted post</p>
<p class="quote-inline">RE: <a href="https://example.org/foo/bar/baz">https://example.org/foo/bar/baz</a></p>
HTML
account: remote_account,
uri: 'https://example.org/foo/bar/quote',
url: 'https://example.org/foo/bar/quote'
).find_or_create_by!(id: 10_000_023)
Quote.create_with(
status: remote_quote,
quoted_status: remote_formatted_post,
state: :accepted
).find_or_create_by!(id: 10_000_010)
Status.create_with(account: showcase_account, reblog: remote_quote).find_or_create_by!(id: 10_000_024)
end
end