Skip to content

Commit

Permalink
[Fix] Remove Travis badges and config file
Browse files Browse the repository at this point in the history
  • Loading branch information
landrok committed Apr 3, 2024
1 parent d5540ee commit d275b9e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 48 deletions.
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ActivityPhp
===========

[![Build Status](https://travis-ci.com/landrok/activitypub.svg?branch=master)](https://travis-ci.com/landrok/activitypub)
[![Build Status](https://github.com/landrok/activitypub/workflows/tests/badge.svg)](https://github.com/landrok/activitypub/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/410c804f4cd03cc39b60/maintainability)](https://codeclimate.com/github/landrok/activitypub/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/410c804f4cd03cc39b60/test_coverage)](https://codeclimate.com/github/landrok/activitypub/test_coverage)

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
---

[![Build Status](https://travis-ci.com/landrok/activitypub.svg?branch=master)](https://travis-ci.com/landrok/activitypub)
[![Build Status](https://github.com/landrok/activitypub/workflows/tests/badge.svg)](https://github.com/landrok/activitypub/actions)
[![Test Coverage](https://api.codeclimate.com/v1/badges/410c804f4cd03cc39b60/test_coverage)](https://codeclimate.com/github/landrok/activitypub/test_coverage)

**ActivityPhp** is an implementation of ActivityPub layers in PHP.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ excerpt: How to fetch Peertube Outbox activities using ActivityPhp's dialects in
Using dialects to fetch Peertube Outbox activities
==================================================

For some usages, you may use an instance without having to configure
For some usages, you may use an instance without having to configure
many items.

For instance, if you want to fetch some public activities, you don't
For instance, if you want to fetch some public activities, you don't
need to have a fully-configured server instance. Indeed, you don't need
any configuration at all.

Expand Down Expand Up @@ -47,18 +47,18 @@ while ($page->next !== null) {

And that's it, you have an array containing all pages.

Therefore, if you test this implementation on a real world
ActivityPub-powered application like Peertube, you would have something
Therefore, if you test this implementation on a real world
ActivityPub-powered application like Peertube, you would have something
like:

```sh
Exception: Property "uuid" is not defined. Type="Video", Class="\ActivityPhp\Type\Extended\Object\Video"
```

Indeed, Peertube (and others like Mastodon) extends the ActivityPub
Indeed, Peertube (and others like Mastodon) extends the ActivityPub
object model to fit their needs.

So, in order to fetch Peertube's activities, we need to extend our base
So, in order to fetch Peertube's activities, we need to extend our base
models with Peertube dialect.

________________________________________________________________________
Expand All @@ -77,14 +77,14 @@ that are specific.
use ActivityPhp\Server;

/* ------------------------------------------------------------------
| We'll use the following definitions to fit PeerTube's dialect
| We'll use the following definitions to fit PeerTube's dialect
------------------------------------------------------------------ */

$peertube = [
'Group' => ['support'],
'Video' => [
'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding',
'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes',
'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding',
'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes',
'dislikes', 'shares', 'comments', 'licence'
],
'Image' => ['width', 'height'],
Expand Down Expand Up @@ -122,13 +122,13 @@ and their videos names.
use ActivityPhp\Server;

/* ------------------------------------------------------------------
| We'll use the following definitions to fit PeerTube's dialect
| We'll use the following definitions to fit PeerTube's dialect
------------------------------------------------------------------ */
$peertube = [
'Group' => ['support'],
'Video' => [
'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding',
'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes',
'uuid', 'category', 'language', 'views', 'sensitive', 'waitTranscoding',
'state', 'commentsEnabled', 'support', 'subtitleLanguage', 'likes',
'dislikes', 'shares', 'comments', 'licence'
],
'Image' => ['width', 'height'],
Expand Down Expand Up @@ -183,11 +183,10 @@ ________________________________________________________________________

Read more
---------
- [An even better way to fetch Peertube Outbox activities]({{ site.doc_baseurl }}/fetch-peertube-outbox-activities-using-ontologies.html)

- [Extending ActivityPub Vocabulary with custom dialects]({{ site.doc_baseurl }}/activitypub-dialects-management.html).

- [Configuring a server instance]({{ site.doc_baseurl }}/activitypub-server-usage.html).

- [Server methods]({{ site.doc_baseurl }}/#server).


Expand Down

0 comments on commit d275b9e

Please sign in to comment.