File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 ) }
Original file line number Diff line number Diff line change @@ -26,13 +26,20 @@ import {
2626 announcementStayTime ,
2727} from "../configs/announcement" ;
2828
29- // Fix Cover URLs
3029function 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
3845export const Thread = ( { threadData } : { threadData : TThread } ) => {
Original file line number Diff line number Diff line change 11{
22 "name" : " mdsig-frontend" ,
3- "version" : " 2.17.8 " ,
3+ "version" : " 2.17.9 " ,
44 "private" : true ,
55 "scripts" : {
66 "dev" : " next dev" ,
You can’t perform that action at this time.
0 commit comments