feat: Per-user renote mute (#10249)
* feat: per-user renote muting From FoundKey/c414f24a2c https://akkoma.dev/FoundKeyGang/FoundKey * Update ja-JP.yml * Delete renote-muting.ts * rename * fix ids * lint * fix * Update CHANGELOG.md * リノートをミュートしたユーザー一覧を見れるように * 🎨 * add test * fix test --------- Co-authored-by: Hélène <pleroma-dev@helene.moe>
This commit is contained in:
parent
8bf6911d4b
commit
4c2f7c64cc
43 changed files with 683 additions and 26 deletions
|
@ -206,7 +206,7 @@ describe('Endpoints', () => {
|
|||
|
||||
describe('notes/reactions/create', () => {
|
||||
test('リアクションできる', async () => {
|
||||
const bobPost = await post(bob);
|
||||
const bobPost = await post(bob, { text: 'hi' });
|
||||
|
||||
const res = await api('/notes/reactions/create', {
|
||||
noteId: bobPost.id,
|
||||
|
@ -224,7 +224,7 @@ describe('Endpoints', () => {
|
|||
});
|
||||
|
||||
test('自分の投稿にもリアクションできる', async () => {
|
||||
const myPost = await post(alice);
|
||||
const myPost = await post(alice, { text: 'hi' });
|
||||
|
||||
const res = await api('/notes/reactions/create', {
|
||||
noteId: myPost.id,
|
||||
|
@ -235,7 +235,7 @@ describe('Endpoints', () => {
|
|||
});
|
||||
|
||||
test('二重にリアクションすると上書きされる', async () => {
|
||||
const bobPost = await post(bob);
|
||||
const bobPost = await post(bob, { text: 'hi' });
|
||||
|
||||
await api('/notes/reactions/create', {
|
||||
noteId: bobPost.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue