add air config
This commit is contained in:
		
							parent
							
								
									9f052dc9ef
								
							
						
					
					
						commit
						afbc822882
					
				
					 3 changed files with 45 additions and 1 deletions
				
			
		|  | @ -47,7 +47,7 @@ func (s *PostStore) Create(ctx context.Context, blog database.Blog, content stri | |||
| } | ||||
| 
 | ||||
| func (s *PostStore) LocalCount(ctx context.Context) (count int64, err error) { | ||||
| 	q := sqlf.Sprintf("SELECT count(*) FROM posts WHERE remote = false") | ||||
| 	q := sqlf.Sprintf("SELECT count(*) FROM posts WHERE visibility = %s OR visibility = %s", database.PublicVisibility, database.UnlistedVisibility) | ||||
| 
 | ||||
| 	err = s.q.QueryRow(ctx, q.Query(sqlf.PostgresBindVar)).Scan(&count) | ||||
| 	if err != nil { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue