Skip to content

Commit

Permalink
Merge pull request #1941 from pantasystem/feature/#1940/channel-post-…
Browse files Browse the repository at this point in the history
…renote-bug

Misskeyでチャンネルの投稿をRenoteした時にそのチャンネルではない場所にrenoteされてしまう問題を修正
  • Loading branch information
pantasystem authored Nov 2, 2023
2 parents 66b6655 + eba0d96 commit 736b0bc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import net.pantasystem.milktea.api.mastodon.status.TootStatusDTO
import net.pantasystem.milktea.api.misskey.notes.DeleteNote
import net.pantasystem.milktea.api.misskey.notes.NoteDTO
import net.pantasystem.milktea.api.misskey.notes.NoteRequest
import net.pantasystem.milktea.api.misskey.notes.Vote
import net.pantasystem.milktea.api.misskey.notes.mute.ToggleThreadMuteRequest
import net.pantasystem.milktea.common.Logger
import net.pantasystem.milktea.common.mapCancellableCatching
Expand All @@ -26,7 +27,6 @@ import net.pantasystem.milktea.model.note.CreateNote
import net.pantasystem.milktea.model.note.Note
import net.pantasystem.milktea.model.note.NoteState
import net.pantasystem.milktea.model.note.poll.Poll
import net.pantasystem.milktea.api.misskey.notes.Vote
import net.pantasystem.milktea.model.note.type4Mastodon
import javax.inject.Inject

Expand Down Expand Up @@ -156,7 +156,8 @@ private class NoteApiAdapterMisskeyPattern(
CreateNote(
author = account, renoteId = target.id,
text = null,
visibility = target.visibility
visibility = target.visibility,
channelId = target.channelId,
)
)
}
Expand Down

0 comments on commit 736b0bc

Please sign in to comment.