Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix author issue

Jonathan Summers-Muirfa5c0ab57e5f
diff --git a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx
index 37d4ba481da..f02c698078d 100644
--- a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx
+++ b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx
@@ -1,6 +1,6 @@
---
title: 'Slack Consolidate: a slackbot built with Python and Supabase'
-description: Different approaches for tracking visitor counts with PostgreSQL.
+description: Different approaches for tracking visitor counts with PostgreSQL
author: rodrigo_mansueli
image: /images/blog/2022-august/slackbot.jpg
thumb: /images/blog/2022-august/slackbot.jpg
@@ -9,8 +9,6 @@ tags:
- python
- api
- automation
-author_image_url: https://github.com/mansueli.png
-authorURL: https://github.com/mansueli
date: '2022-08-09'
toc_depth: 3
---
diff --git a/apps/www/lib/posts.tsx b/apps/www/lib/posts.tsx
index 7d21e4c66ee..199551e06e2 100644
--- a/apps/www/lib/posts.tsx
+++ b/apps/www/lib/posts.tsx
@@ -136,14 +136,13 @@ export const getPostdata = async (slug: string, directory: string) => {
export const getAllCategories = (directory: Directories) => {
const posts = getSortedPosts(directory)
let categories: any = []
- if (posts){
+
posts.map((post: any) => {
// add tags into categories array
post.tags.map((tag: string) => {
if (!categories.includes(tag)) return categories.push(tag)
})
})
-}
return categories
}