fix call and wrong return of add_follower function
Some checks are pending
PHP_CodeSniffer / phpcs (push) Waiting to run
Unit Testing / phpunit (5.6, 6.2) (push) Waiting to run
Unit Testing / phpunit (7.0) (push) Waiting to run
Unit Testing / phpunit (7.2) (push) Waiting to run
Unit Testing / phpunit (7.3) (push) Waiting to run
Unit Testing / phpunit (7.4) (push) Waiting to run
Unit Testing / phpunit (8.0) (push) Waiting to run
Unit Testing / phpunit (8.1) (push) Waiting to run
Unit Testing / phpunit (8.2) (push) Waiting to run
Unit Testing / phpunit (latest) (push) Waiting to run

This commit is contained in:
André Menrath 2023-12-27 21:42:39 +01:00
parent 16141b87a5
commit 97823c05bb
3 changed files with 5 additions and 13 deletions

View file

@ -1,25 +1,18 @@
version: '2' version: '3'
services: services:
test-db: test-db:
platform: linux/x86_64 image: mariadb:latest
image: mysql:5.7
environment: environment:
MYSQL_DATABASE: activitypub-test MYSQL_DATABASE: activitypub-test
MYSQL_ROOT_PASSWORD: activitypub-test MYSQL_ROOT_PASSWORD: activitypub-test
healthcheck: expose:
test: ["CMD", "curl", "-f", "http://localhost:3306"] - "3306"
interval: 5s
timeout: 2s
retries: 5
test-php: test-php:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
depends_on: depends_on:
test-db:
condition: service_healthy
links:
- test-db - test-db
volumes: volumes:
- .:/app - .:/app

View file

@ -52,7 +52,7 @@ class Followers {
return $follower_id; return $follower_id;
} }
return $follower; return $follower_id;
} }
/** /**

View file

@ -47,7 +47,6 @@ class Follow {
// save follower // save follower
$follower_id = Followers::add_follower( $follower_id = Followers::add_follower(
$user_id,
$activity['actor'] $activity['actor']
); );