Developing heterogeneous photocatalysts for the applications in harsh conditions is of high importance but challenging. Herein, by converting the imine linkages into quinoline groups of triphenylamine incorporated covalent organic frameworks (COFs), two photosensitive COFs, namely TFPA-TAPT-COF-Q and TFPA-TPB-COF-Q, are successfully constructed. The obtained quinoline-linked COFs display improved stability and photocatalytic activity, making them suitable photocatalysts for photocatalytic reactions under harsh conditions, as verified by the recyclable photocatalytic reactions of organic acid involving oxidative decarboxylation and organic base involving benzylamine coupling. Under strong oxidative condition, the quinoline-linked COFs show a high efficiency up to 11831.6 μmol·g−1·h−1 and a long-term recyclable usability for photocatalytic production of H2O2, while the pristine imine-linked COFs are less catalytically active and easily decomposed in these harsh conditions. The results demonstrate that enhancing the linkage robustness of photoactive COFs is a promising strategy to construct heterogeneous catalysts for photocatalytic reactions under harsh conditions.