Skip to content

Commit 9bc441d

Browse files
authored
v2.17.9 (#255)
2 parents 20ab4ba + 7743606 commit 9bc441d

5 files changed

Lines changed: 16 additions & 9 deletions

File tree

app/(Layout)/desktop/ToolBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ToolBar = () => {
3737
name: "new",
3838
route: "/new",
3939
icon: "/icons/plus-circle.svg",
40-
clickable: !isLoading && isLogin,
40+
clickable: !isLoading && true,
4141
},
4242
{
4343
name: "info",

app/(Layout)/mobile/ToolBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const ToolBar = () => {
3737
name: "new",
3838
route: "/new",
3939
icon: "/icons/plus-circle.svg",
40-
clickable: !isLoading && isLogin,
40+
clickable: !isLoading && true,
4141
},
4242
{
4343
name: "info",

components/PostEditor/mobile/PostEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default function NewPostMobile({
249249
點擊上傳圖片
250250
</div>
251251
<div className="text-gray-500 text-sm text-center">
252-
支援 JPG、PNG、GIF 格式
252+
支援 png、jpg、webp、tiff 格式
253253
</div>
254254
</label>
255255
)}

components/Threads/desktop/ThreadsList.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,20 @@ import {
2626
announcementStayTime,
2727
} from "../configs/announcement";
2828

29-
// Fix Cover URLs
3029
function fixCoverUrl(cover: string) {
31-
if (cover.includes("http")) {
32-
return `${process.env.NEXT_PUBLIC_API_URL}/image/${cover.split("image/")[1]}`;
33-
} else {
34-
return `${process.env.NEXT_PUBLIC_API_URL}/image/${cover}`;
30+
if (cover.startsWith("http://") || cover.startsWith("https://")) {
31+
if (cover.includes("lazco.dev")) {
32+
const pathPart = cover.split("lazco.dev/")[1] || "";
33+
return `${process.env.NEXT_PUBLIC_API_URL}/${pathPart}`;
34+
}
35+
return cover;
36+
}
37+
38+
if (cover.startsWith("/image/")) {
39+
return `${process.env.NEXT_PUBLIC_API_URL}${cover}`;
3540
}
41+
42+
return `${process.env.NEXT_PUBLIC_API_URL}/image/${cover}`;
3643
}
3744

3845
export const Thread = ({ threadData }: { threadData: TThread }) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdsig-frontend",
3-
"version": "2.17.8",
3+
"version": "2.17.9",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

0 commit comments

Comments
 (0)