mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 16:42:47 +00:00
Add example post with manual quote approval policy to dev:populate_sample_data
(#36099)
This commit is contained in:
parent
887e982aa2
commit
943cdc5b21
|
@ -436,6 +436,13 @@ namespace :dev do
|
||||||
quoted_status: quoted,
|
quoted_status: quoted,
|
||||||
state: :accepted
|
state: :accepted
|
||||||
).find_or_create_by!(id: 10_000_013)
|
).find_or_create_by!(id: 10_000_013)
|
||||||
|
|
||||||
|
Status.create_with(
|
||||||
|
text: 'This post has a manual quote policy',
|
||||||
|
account: remote_account,
|
||||||
|
visibility: :public,
|
||||||
|
quote_approval_policy: Status::QUOTE_APPROVAL_POLICY_FLAGS[:public]
|
||||||
|
).find_or_create_by!(id: 10_000_030)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user