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
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:
parent
16141b87a5
commit
97823c05bb
3 changed files with 5 additions and 13 deletions
|
@ -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
|
||||
|
|
|
@ -52,7 +52,7 @@ class Followers {
|
|||
return $follower_id;
|
||||
}
|
||||
|
||||
return $follower;
|
||||
return $follower_id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -47,7 +47,6 @@ class Follow {
|
|||
|
||||
// save follower
|
||||
$follower_id = Followers::add_follower(
|
||||
$user_id,
|
||||
$activity['actor']
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue