Fix database query error in Create activity handler

This commit is contained in:
silverpill 2023-04-12 20:01:41 +00:00
parent 8ba472a732
commit 846e79d6e2
3 changed files with 6 additions and 0 deletions

View file

@ -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.
- 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

View file

@ -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?;

View file

@ -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?;