fix favorite -> favorited
This commit is contained in:
parent
2a2a379335
commit
4827fbdd10
|
@ -66,7 +66,7 @@ export class ChannelEntityService {
|
||||||
}
|
}
|
||||||
|
|
||||||
let isFollowing = false;
|
let isFollowing = false;
|
||||||
let isFavorite = false;
|
let isFavorited = false;
|
||||||
let isMuting = false;
|
let isMuting = false;
|
||||||
if (me) {
|
if (me) {
|
||||||
isFollowing = opts?.followings?.has(channel.id) ?? await this.channelFollowingsRepository.exists({
|
isFollowing = opts?.followings?.has(channel.id) ?? await this.channelFollowingsRepository.exists({
|
||||||
|
@ -76,7 +76,7 @@ export class ChannelEntityService {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
isFavorite = opts?.favorites?.has(channel.id) ?? await this.channelFavoritesRepository.exists({
|
isFavorited = opts?.favorites?.has(channel.id) ?? await this.channelFavoritesRepository.exists({
|
||||||
where: {
|
where: {
|
||||||
userId: me.id,
|
userId: me.id,
|
||||||
channelId: channel.id,
|
channelId: channel.id,
|
||||||
|
@ -121,7 +121,7 @@ export class ChannelEntityService {
|
||||||
|
|
||||||
...(me ? {
|
...(me ? {
|
||||||
isFollowing,
|
isFollowing,
|
||||||
isFavorite,
|
isFavorited,
|
||||||
isMuting,
|
isMuting,
|
||||||
hasUnreadNote: false, // 後方互換性のため
|
hasUnreadNote: false, // 後方互換性のため
|
||||||
} : {}),
|
} : {}),
|
||||||
|
|
Loading…
Reference in New Issue