remove bolt on posts forwarding to self
This commit is contained in:
parent
6480e1d9be
commit
a5b2de64d3
|
@ -85,6 +85,7 @@ export default gql`
|
|||
root: Item
|
||||
user: User!
|
||||
userId: Int!
|
||||
fwdUserId: Int
|
||||
fwdUser: User
|
||||
depth: Int!
|
||||
mine: Boolean!
|
||||
|
|
|
@ -77,7 +77,7 @@ export default function UpVote ({ item, className }) {
|
|||
}`
|
||||
)
|
||||
|
||||
const fwd2me = me && me?.id === item?.fwdUser?.id
|
||||
const fwd2me = me && Number(me?.id) === item?.fwdUserId
|
||||
|
||||
const setVoteShow = (yes) => {
|
||||
if (!me) return
|
||||
|
|
|
@ -14,6 +14,7 @@ export const ITEM_FIELDS = gql`
|
|||
streak
|
||||
id
|
||||
}
|
||||
fwdUserId
|
||||
position
|
||||
sats
|
||||
upvotes
|
||||
|
|
Loading…
Reference in New Issue