Merge pull request #1008 from stackernews/territory-header-createdAt

Add founding date to territory header
This commit is contained in:
Keyan 2024-04-03 13:00:00 -05:00 committed by GitHub
commit 5a1f39d076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,8 @@ export function TerritoryInfo ({ sub }) {
<Link href={`/${sub.user.name}`}>
@{sub.user.name}<span> </span><Hat className='fill-grey' user={sub.user} height={12} width={12} />
</Link>
<span>on </span>
<span className='fw-bold'>{new Date(sub.createdAt).toDateString()}</span>
</div>
<div className='text-muted'>
<span>post cost </span>

View File

@ -5,6 +5,7 @@ import { COMMENTS_ITEM_EXT_FIELDS } from './comments'
export const SUB_FIELDS = gql`
fragment SubFields on Sub {
name
createdAt
postTypes
allowFreebies
rankingType