Fix database query error in Create activity handler
This commit is contained in:
parent
8ba472a732
commit
846e79d6e2
3 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,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.
|
- Re-fetch object if `attributedTo` value doesn't match `actor` of `Create` activity.
|
||||||
- Added actor validation to `Update(Note)` and `Undo(Follow)` handlers.
|
- 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
|
## [1.20.0] - 2023-03-07
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -360,6 +360,7 @@ pub async fn has_local_followers(
|
||||||
WHERE
|
WHERE
|
||||||
actor_profile.actor_id = $1
|
actor_profile.actor_id = $1
|
||||||
AND relationship_type = $2
|
AND relationship_type = $2
|
||||||
|
LIMIT 1
|
||||||
",
|
",
|
||||||
&[&actor_id, &RelationshipType::Follow]
|
&[&actor_id, &RelationshipType::Follow]
|
||||||
).await?;
|
).await?;
|
||||||
|
|
|
@ -92,6 +92,7 @@ pub async fn create_user(
|
||||||
SELECT 1
|
SELECT 1
|
||||||
FROM user_account JOIN actor_profile USING (id)
|
FROM user_account JOIN actor_profile USING (id)
|
||||||
WHERE actor_profile.username ILIKE $1
|
WHERE actor_profile.username ILIKE $1
|
||||||
|
LIMIT 1
|
||||||
",
|
",
|
||||||
&[&user_data.username],
|
&[&user_data.username],
|
||||||
).await?;
|
).await?;
|
||||||
|
|
Loading…
Reference in a new issue