put opentimestamps link in item dropdown

This commit is contained in:
keyan 2023-02-16 17:07:20 -06:00
parent a58a39dae2
commit 16bf7007cc
2 changed files with 8 additions and 1 deletions

View File

@ -92,7 +92,13 @@ export default function ItemInfo ({ item, commentsText, className, embellishUser
{extraInfo}
<ItemDropdown>
<CopyLinkDropdownItem item={item} />
<BookmarkDropdownItem item={item} />
{me && <BookmarkDropdownItem item={item} />}
{item.otsHash &&
<Dropdown.Item>
<Link passHref href={`/items/${item.id}/ots`}>
<a className='text-reset'>ots timestamp</a>
</Link>
</Dropdown.Item>}
{me && !item.meSats && !item.position && !item.meDontLike &&
!item.mine && !item.deletedAt && <DontLikeThisDropdownItem id={item.id} />}
{item.mine && !item.position && !item.deletedAt &&

View File

@ -15,6 +15,7 @@ export const ITEM_FIELDS = gql`
id
}
fwdUserId
otsHash
position
sats
upvotes