Skip to content

Commit

Permalink
Merge pull request #700 from Npepperlinux/misskey_only_poll_renote_is…
Browse files Browse the repository at this point in the history
…_quote

misskey only poll renote is quote
  • Loading branch information
Tlaster authored Feb 1, 2025
2 parents 8ea1237 + 6d69e91 commit d311a28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private fun List<Note>.toDbPagingTimeline(
references =
listOfNotNull(
if (it.renote != null) {
if (it.text.isNullOrEmpty() && it.files.isNullOrEmpty()) {
if (it.text.isNullOrEmpty() && it.files.isNullOrEmpty() && it.poll == null) {
ReferenceType.Retweet to it.renote.toDbStatusWithUser(accountKey)
} else {
ReferenceType.Quote to it.renote.toDbStatusWithUser(accountKey)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ internal fun Note.renderStatus(
user = user,
quote =
listOfNotNull(
if (text != null || !files.isNullOrEmpty() || cw != null) {
if (text != null || !files.isNullOrEmpty() || cw != null || poll != null) {
renote?.renderStatus(accountKey, event)
} else {
null
Expand Down

0 comments on commit d311a28

Please sign in to comment.