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:
test-db:
platform: linux/x86_64
image: mysql:5.7
image: mariadb:latest
environment:
MYSQL_DATABASE: activitypub-test
MYSQL_ROOT_PASSWORD: activitypub-test
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3306"]
interval: 5s
timeout: 2s
retries: 5
expose:
- "3306"
test-php:
build:
context: .
dockerfile: Dockerfile
depends_on:
test-db:
condition: service_healthy
links:
- test-db
volumes:
- .:/app

View file

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

View file

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