feat: ncue /go ref로 author_id 설정

- ref_type/ref(이메일 또는 IP) 수신 시 쿠키로 유지
- 링크 저장 시 ref 기반으로 author_id(text) 채움

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dsyoon
2026-02-08 11:58:24 +09:00
parent 7d0c3393d1
commit 0b7a814791
2 changed files with 33 additions and 2 deletions

View File

@@ -91,3 +91,12 @@ python app.py
- 초기 화면은 DB에서 **첫 페이지(기본 30개)** 만 가져와 SSR로 즉시 렌더링합니다.
- 메타데이터 추출은 캐시를 사용합니다(성공/실패 TTL 각각 적용).
## ncue.net 연동 (ref 전달)
`ncue.net``/go`에서 아래와 같이 전달되는 값을 받아 `author_id(text)`에 저장합니다.
- 로그인 사용자: `ref_type=email&ref=<email>`
- 비로그인 사용자: `ref_type=ip&ref=<ip>`
이 값은 최초 진입 시 쿼리스트링으로 들어오며, 이후 요청에서도 유지되도록 서버가 쿠키로 저장합니다.