~vpzom/lotide

746f882491c7560449576ad54be4f5fac000d359 — Colin Reeder 3 months ago 958099d
community_follow doesn't have a timestamp (#146)
1 files changed, 1 insertions(+), 1 deletions(-)

M src/apub_util/ingest.rs
M src/apub_util/ingest.rs => src/apub_util/ingest.rs +1 -1
@@ 184,7 184,7 @@ pub async fn ingest_object(
                        if let Some(row) = row {
                            let local: bool = row.get(0);
                            if local {
                                db.execute("INSERT INTO community_follow (community, follower, local, ap_id, accepted, created_local) VALUES ($1, $2, FALSE, $3, TRUE, current_timestamp) ON CONFLICT (community, follower) DO NOTHING", &[&community_id, &follower_local_id, &activity_ap_id.as_str()]).await?;
                                db.execute("INSERT INTO community_follow (community, follower, local, ap_id, accepted) VALUES ($1, $2, FALSE, $3, TRUE) ON CONFLICT (community, follower) DO NOTHING", &[&community_id, &follower_local_id, &activity_ap_id.as_str()]).await?;

                                crate::apub_util::spawn_enqueue_send_community_follow_accept(
                                    community_id,