ai/at
1
0
This commit is contained in:
2026-03-22 12:34:29 +09:00
parent 210b1dea0a
commit 110af690d1
5 changed files with 31 additions and 16 deletions

View File

@@ -157,3 +157,12 @@ services:
- ./data/feed:/data/ - ./data/feed:/data/
depends_on: depends_on:
- jetstream - jetstream
chat:
ports:
- 3100:3100
build:
context: ./repos/chat/
restart: always
volumes:
- ./data/chat:/data

View File

@@ -41,6 +41,7 @@ function at-repos-env() {
"ozone" "ozone"
"social-app" "social-app"
"feed" "feed"
"chat"
) )
handles=( handles=(
"syui.syui.ai" "syui.syui.ai"
@@ -93,6 +94,9 @@ function at-repos-clone() {
if [ ! -f $d/repos/feed-generator/Dockerfile ] && [ -f $d/docker/feed/Dockerfile ];then if [ ! -f $d/repos/feed-generator/Dockerfile ] && [ -f $d/docker/feed/Dockerfile ];then
cp -rf $d/docker/feed/Dockerfile $d/repos/feed-generator/ cp -rf $d/docker/feed/Dockerfile $d/repos/feed-generator/
fi fi
if [ ! -d $d/repos/chat ];then
git clone https://git.syui.ai/ai/chat $d/repos/chat
fi
} }
function at-repos-pull() { function at-repos-pull() {
@@ -435,6 +439,7 @@ function at-repos-docker-verify() {
ozone) check_file="/app/services/ozone/api.js" ;; ozone) check_file="/app/services/ozone/api.js" ;;
bgs) check_file="/relay" ;; bgs) check_file="/relay" ;;
plc) check_file="/app/packages/server/dist/index.js" ;; plc) check_file="/app/packages/server/dist/index.js" ;;
chat) check_file="/usr/local/bin/aichat" ;;
*) return 0 ;; *) return 0 ;;
esac esac
local cid local cid

View File

@@ -1,5 +1,5 @@
--- a/src/lib/constants.ts 2026-03-15 19:17:45 --- a/src/lib/constants.ts 2026-03-22 12:31:56
+++ b/src/lib/constants.ts 2026-03-15 19:16:32 +++ b/src/lib/constants.ts 2026-03-22 12:29:49
@@ -7,12 +7,12 @@ @@ -7,12 +7,12 @@
export const LOCAL_DEV_SERVICE = export const LOCAL_DEV_SERVICE =
Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583' Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583'
@@ -95,7 +95,7 @@
+ +
+export function getDmServiceHeaders(serviceUrl?: string) { +export function getDmServiceHeaders(serviceUrl?: string) {
+ const chatDid = isSelfHostedService(serviceUrl) + const chatDid = isSelfHostedService(serviceUrl)
+ ? CHAT_PROXY_DID + ? PUBLIC_APPVIEW_DID
+ : OFFICIAL_CHAT_DID + : OFFICIAL_CHAT_DID
+ return { + return {
+ 'atproto-proxy': `${chatDid}#bsky_chat`, + 'atproto-proxy': `${chatDid}#bsky_chat`,
@@ -116,8 +116,6 @@
community: `https://bsky.social/about/support/community-guidelines`, community: `https://bsky.social/about/support/community-guidelines`,
communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`, communityDeprecated: `https://bsky.social/about/support/community-guidelines-deprecated`,
} }
diff --git a/src/lib/api/feed/home.ts b/src/lib/api/feed/home.ts
index 7a0d72d91..93554dc3e 100644
--- a/src/lib/api/feed/home.ts --- a/src/lib/api/feed/home.ts
+++ b/src/lib/api/feed/home.ts +++ b/src/lib/api/feed/home.ts
@@ -45,7 +45,7 @@ export class HomeFeedAPI implements FeedAPI { @@ -45,7 +45,7 @@ export class HomeFeedAPI implements FeedAPI {

View File

@@ -1,6 +1,6 @@
--- a/src/view/shell/bottom-bar/BottomBar.tsx --- a/src/view/shell/bottom-bar/BottomBar.tsx 2026-03-22 12:16:35
+++ b/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx 2026-03-22 12:17:01
@@ -196,38 +196,40 @@ @@ -199,40 +199,42 @@
accessibilityLabel={_(msg`Search`)} accessibilityLabel={_(msg`Search`)}
accessibilityHint="" accessibilityHint=""
/> />
@@ -20,13 +20,15 @@
- ) - )
- } - }
- onPress={onPressMessages} - onPress={onPressMessages}
- notificationCount={numUnreadMessages.numUnread} - notificationCount={
- hasNew={numUnreadMessages.hasNew} - aa.flags.chatDisabled ? undefined : numUnreadMessages.numUnread
- }
- hasNew={aa.flags.chatDisabled ? false : numUnreadMessages.hasNew}
- accessible={true} - accessible={true}
- accessibilityRole="tab" - accessibilityRole="tab"
- accessibilityLabel={_(msg`Chat`)} - accessibilityLabel={_(msg`Chat`)}
- accessibilityHint={ - accessibilityHint={
- numUnreadMessages.count > 0 - !aa.flags.chatDisabled && numUnreadMessages.count > 0
- ? _( - ? _(
- plural(numUnreadMessages.numUnread ?? 0, { - plural(numUnreadMessages.numUnread ?? 0, {
- one: '# unread item', - one: '# unread item',
@@ -36,7 +38,7 @@
- : '' - : ''
- } - }
- /> - />
+ {currentAccount?.isSelfHosted && ( + {!currentAccount?.isSelfHosted && (
+ <Btn + <Btn
+ testID="bottomBarMessagesBtn" + testID="bottomBarMessagesBtn"
+ icon={ + icon={
@@ -53,13 +55,15 @@
+ ) + )
+ } + }
+ onPress={onPressMessages} + onPress={onPressMessages}
+ notificationCount={numUnreadMessages.numUnread} + notificationCount={
+ hasNew={numUnreadMessages.hasNew} + aa.flags.chatDisabled ? undefined : numUnreadMessages.numUnread
+ }
+ hasNew={aa.flags.chatDisabled ? false : numUnreadMessages.hasNew}
+ accessible={true} + accessible={true}
+ accessibilityRole="tab" + accessibilityRole="tab"
+ accessibilityLabel={_(msg`Chat`)} + accessibilityLabel={_(msg`Chat`)}
+ accessibilityHint={ + accessibilityHint={
+ numUnreadMessages.count > 0 + !aa.flags.chatDisabled && numUnreadMessages.count > 0
+ ? _( + ? _(
+ plural(numUnreadMessages.numUnread ?? 0, { + plural(numUnreadMessages.numUnread ?? 0, {
+ one: '# unread item', + one: '# unread item',

View File

@@ -35,7 +35,6 @@ PATCH_FILES_IOS=(
"020-social-app-ios-bypass-age-assurance.patch" "020-social-app-ios-bypass-age-assurance.patch"
"021-social-app-ios-clean-feed.patch" # DiscoverFallback + Empty/End + PostFeed (merged 040) "021-social-app-ios-clean-feed.patch" # DiscoverFallback + Empty/End + PostFeed (merged 040)
"022-social-app-ios-bskyweb.patch" # bskyweb routes + templates (merged 025) "022-social-app-ios-bskyweb.patch" # bskyweb routes + templates (merged 025)
"023-social-app-ios-disable-dm.patch"
"024-social-app-ios-disable-external-services.patch" "024-social-app-ios-disable-external-services.patch"
"027-social-app-ios-remove-birthdate.patch" "027-social-app-ios-remove-birthdate.patch"
"028-social-app-ios-remove-discover.patch" # Explore + Feeds (merged 029) "028-social-app-ios-remove-discover.patch" # Explore + Feeds (merged 029)