Fix database query error in Create activity handler
This commit is contained in:
parent
f8df50934c
commit
1092319f6e
3 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
- Re-fetch object if `attributedTo` value doesn't match `actor` of `Create` activity.
|
||||
- Added actor validation to `Update(Note)` and `Undo(Follow)` handlers.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed database query error in `Create` activity handler.
|
||||
|
||||
## [1.20.0] - 2023-03-07
|
||||
|
||||
### Added
|
||||
|
|
|
@ -360,6 +360,7 @@ pub async fn has_local_followers(
|
|||
WHERE
|
||||
actor_profile.actor_id = $1
|
||||
AND relationship_type = $2
|
||||
LIMIT 1
|
||||
",
|
||||
&[&actor_id, &RelationshipType::Follow]
|
||||
).await?;
|
||||
|
|
|
@ -92,6 +92,7 @@ pub async fn create_user(
|
|||
SELECT 1
|
||||
FROM user_account JOIN actor_profile USING (id)
|
||||
WHERE actor_profile.username ILIKE $1
|
||||
LIMIT 1
|
||||
",
|
||||
&[&user_data.username],
|
||||
).await?;
|
||||
|
|
Loading…
Reference in a new issue