@@ -59,7 +59,7 @@ def _to_article_feed_record_dto(res: Any) -> ArticleFeedRecordDTO:
5959 tags = tags ,
6060 author_username = res .username ,
6161 author_bio = res .bio ,
62- author_image_url = res .image_url ,
62+ author_image = res .image ,
6363 author_following = res .following ,
6464 created_at = res .created_at ,
6565 updated_at = res .updated_at ,
@@ -148,7 +148,7 @@ async def list_by_followings(
148148 Article .updated_at .label ("updated_at" ),
149149 User .username .label ("username" ),
150150 User .bio .label ("bio" ),
151- User .image_url .label ("image_url " ),
151+ User .image .label ("image " ),
152152 true ().label ("following" ),
153153 # Subquery for favorites count.
154154 select (func .count (Favorite .article_id ))
@@ -187,7 +187,7 @@ async def list_by_followings(
187187 User .username ,
188188 User .bio ,
189189 User .email ,
190- User .image_url ,
190+ User .image ,
191191 )
192192 )
193193 query = query .limit (limit ).offset (offset )
@@ -218,7 +218,7 @@ async def list_by_filters(
218218 Article .updated_at .label ("updated_at" ),
219219 User .username .label ("username" ),
220220 User .bio .label ("bio" ),
221- User .image_url .label ("image_url " ),
221+ User .image .label ("image " ),
222222 exists ()
223223 .where (
224224 (Follower .follower_id == user_id )
@@ -256,7 +256,7 @@ async def list_by_filters(
256256 User .username ,
257257 User .bio ,
258258 User .email ,
259- User .image_url ,
259+ User .image ,
260260 )
261261 # fmt: on
262262 )
0 commit comments