pl-fe: handle 404 for about pages
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -7,6 +7,8 @@ const fetchAboutPage = async (slug: string, locale?: string) => {
|
||||
|
||||
const { data } = await staticFetch(`/instance/about/${filename}`);
|
||||
|
||||
if (data.includes('<div id="plfe">')) return '';
|
||||
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user