Skip to content

Commit

Permalink
fix: update thing
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Mar 25, 2024
1 parent acb90e2 commit 6cbf46a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const generateMetadata = async (): Promise<Metadata> => {
},
},
twitter: {
creator: `@${user.username}`,
creator: `@${user.socialIds?.twitter || user.socialIds?.x || '__oQuery'}`,
card: 'summary_large_image',
title: seo.title,
description: seo.description,
Expand Down
15 changes: 10 additions & 5 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ import type { MetadataRoute } from 'next'

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
disallow: ['/login/', '/preview/', '/dashboard'],
},
rules: [
{
userAgent: '*',
disallow: ['/login/', '/preview/', '/dashboard'],
},
{
userAgent: 'Googlebot',
disallow: ['/login/', '/preview/', '/dashboard', '/og'],
},
],
}
}
6 changes: 5 additions & 1 deletion src/components/modules/activity/Presence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,14 @@ const ReadPresenceTimeline = () => {
const { roomName } = useRoomContext()
const activityPresenceIdsCurrentRoom = useActivityPresenceByRoomName(roomName)

const uniqueActivityPresenceIdsCurrentRoom = uniq(
activityPresenceIdsCurrentRoom,
)
if (uniqueActivityPresenceIdsCurrentRoom.length < 2) return null
return (
<RootPortal>
<div className="group fixed inset-y-20 left-0 z-[3] w-8">
{uniq(activityPresenceIdsCurrentRoom).map((identity) => {
{uniqueActivityPresenceIdsCurrentRoom.map((identity) => {
return (
<TimelineItem
key={identity}
Expand Down

0 comments on commit 6cbf46a

Please sign in to comment.