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:
|
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
|
||||||
|
|
|
@ -52,7 +52,7 @@ class Followers {
|
||||||
return $follower_id;
|
return $follower_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $follower;
|
return $follower_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue